■31878 / ) |
Re[3]: C#における全角文字の検索方法 |
□投稿者/ επιστημη (1609回)-(2009/01/29(Thu) 17:53:32)
|
> テキストファイルから呼び出そうとするとやはり-1を返します
そのテキストファイル、UTF-8になってないんじゃねぇの? shift_jis なら
× new StreamReader(@"C:\Documents and Settings\test3.txt") ○ new StreamReader(@"C:\Documents and Settings\test3.txt", Encoding.GetEncoding("shift_jis"))
|
|