The text document encodings constant for text file read and write
Encodings
01 Syntax
Microsoft.VisualBasic.Text.Encodings
02 Fields
| Name | Overloads | Summary |
|---|---|---|
| Default | 2 | Encoding.Default: Gets an encoding for the operating system's current ANSI code page. |
| Unicode | 2 | Alias of the value Encodings.UTF16. |
| UTF8 | 2 | 在Linux平台上面是TextEncodings.UTF8WithoutBOM,而在Windows平台上面则是带有BOM的UTF8格式. |
| UTF16 | 2 | VB.NET的XML文件的默认编码格式为utf-16 |
| GB2312 | 2 | Text encoding for simplify Chinese. |
| ANSI | 1 | |
| ASCII | 1 | |
| UTF8WithoutBOM | 1 | |
| UTF32 | 1 |
03 Members
Default
Encoding.Default: Gets an encoding for the operating system's current ANSI code page.
Unicode
Alias of the value Encodings.UTF16. (utf-16编码的别名?所以使用这个编码的效果是和Encodings.UTF16的效果是一样的)
UTF8
在Linux平台上面是TextEncodings.UTF8WithoutBOM,而在Windows平台上面则是带有BOM的UTF8格式. (HTML的默认的编码格式,假若所保存的html文本出现乱码,请考虑是不是应该要选择这个编码才行?)
UTF16
VB.NET的XML文件的默认编码格式为utf-16
GB2312
Text encoding for simplify Chinese.
Default
ANSI
ASCII
Unicode
UTF8
UTF8WithoutBOM
UTF16
UTF32
GB2312