2011年10月3日 星期一

[.Net] Reading scrambled words in txt file

There is a txt file with Chinese words and I read it string by StreadReader.
I set encoding to default, but words still scrambled.


Solution:

I open the txt file and set encoding as Unicode then work well.

沒有留言:

張貼留言