7
4

2 に答える 2

13
于 2012-11-30T12:46:46.147 に答える
3

Chances are the text will be UTF8.

File.ReadAllText(filePath, Encoding.UTF8)

coupled with

File.WriteAllText(destinationFile, sb.ToString(), Encoding.UTF8)

should cover off dealing with the Unicode characters. If you do one or the other you're going to get garbage output, both or nothing.

于 2012-11-30T03:32:49.330 に答える