What's new
  • Visit Rebornbuddy
  • Visit Panda Profiles
  • Visit LLamamMagic
  • Visit Resources
  • Visit Downloads
  • Visit Portal

Character encoding

Ama

New Member
Joined
Jun 6, 2011
Messages
1,171
Reaction score
33
Does anyone know how to change the character encoding for a project? I was hoping I wouldn't have to americanize all the European names in my project.

names.jpg
 
ok solved my problem by setting the encoding for the streamreader.

PHP:
public List<string> getNames(string file)
        {
            List<string> list = new List<string>();
            StreamReader read = new StreamReader(file, Encoding.Default, true);
            string s;
            while ((s = read.ReadLine()) != null)            
                list.Add(s);

            return list;
        }

namesFixed.jpg
 
Back
Top