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

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Character encoding

Ama

New Member
Joined
Jun 6, 2011
Messages
1,171
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