Ama New Member Joined Jun 6, 2011 Messages 1,171 Jun 5, 2012 #1 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.
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.
Ama New Member Joined Jun 6, 2011 Messages 1,171 Jun 5, 2012 #2 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; }
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; }