Encodings {Microsoft.VisualBasic.Text} | .NET clr documentation |
The text document encodings constant for text file read and write
# namespace Microsoft.VisualBasic.Text
export class Encodings extends Enum {
# Encoding.Default: Gets an encoding for the operating system's current ANSI code page.
Default: Encodings = 0;
ANSI: Encodings = 1;
ASCII: Encodings = 10;
# Alias of the value Encodings.UTF16.
# (utf-16编码的别名?所以使用这个编码的效果是和Encodings.UTF16的效果是一样的)
Unicode: Encodings = 11;
UTF7: Encodings = 12;
# 在Linux平台上面是TextEncodings.UTF8WithoutBOM,而在Windows平台上面则是带有BOM的UTF8格式.
# (HTML的默认的编码格式,假若所保存的html文本出现乱码,请考虑是不是应该要选择这个编码才行?)
UTF8: Encodings = 13;
UTF8WithoutBOM: Encodings = 14;
# VB.NET的XML文件的默认编码格式为utf-16
UTF16: Encodings = 15;
UTF32: Encodings = 16;
# Text encoding for simplify Chinese.
[@desc "gb-2312"]
GB2312: Encodings = 17;
}
Default
: EncodingsANSI
: EncodingsASCII
: EncodingsUnicode
: EncodingsUTF7
: EncodingsUTF8
: EncodingsUTF8WithoutBOM
: EncodingsUTF16
: EncodingsUTF32
: EncodingsGB2312
: Encodings