我正在使用GWT在Windows 8.1应用程序中输出的Javascript文件,但是也是UTF-8编码的,这些文件在开始时也需要Byte Order Mark 。 (见为什么这个问题:http://social.msdn.microsoft.com/Forums/windowsapps/en-US/dd352270-8790-4b48-8492-17a4a6875e99/why-the-utf8
我使用VB.NET 2008 Dim oEncoding As Encoding
Dim oReader As StreamReader
Dim sReadString As String
oReader = New StreamReader("TextNonBOM.txt", System.Text.Encoding.Default, True)
sReadString = oRead