G Guest Jun 1, 2004 #1 how can can I read the string( doubule characters:kanji or chinanese character ) from a text file using C#.
how can can I read the string( doubule characters:kanji or chinanese character ) from a text file using C#.
J Jon Skeet [C# MVP] Jun 1, 2004 #2 flybird said: how can can I read the string( doubule characters:kanji or chinanese character ) from a text file using C#. Click to expand... You need to know exactly which encoding has been used. See http://www.pobox.com/~skeet/csharp/unicode.html
flybird said: how can can I read the string( doubule characters:kanji or chinanese character ) from a text file using C#. Click to expand... You need to know exactly which encoding has been used. See http://www.pobox.com/~skeet/csharp/unicode.html
A Arne Janning Jun 1, 2004 #3 flybird said: how can can I read the string( doubule characters:kanji or chinanese character ) from a text file using C#. Click to expand... http://msdn.microsoft.com/library/?url=/library/en-us/cpguide/html/cpconReadingTextFromFile.asp Use System.Text.Encoding.Unicode, System.Text.Encoding.UTF8 or whatever fits your needs in the StreamReader-Constructor. Cheers Arne Janning
flybird said: how can can I read the string( doubule characters:kanji or chinanese character ) from a text file using C#. Click to expand... http://msdn.microsoft.com/library/?url=/library/en-us/cpguide/html/cpconReadingTextFromFile.asp Use System.Text.Encoding.Unicode, System.Text.Encoding.UTF8 or whatever fits your needs in the StreamReader-Constructor. Cheers Arne Janning