Encodings {Microsoft.VisualBasic.Text} .NET clr documentation

Encodings

Description

The text document encodings constant for text file read and write

Declare

            
# 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;

}

        

.NET clr type reference tree

  1. this class extends from Enum class: Enum
  2. use by field member Default: Encodings
  3. use by field member ANSI: Encodings
  4. use by field member ASCII: Encodings
  5. use by field member Unicode: Encodings
  6. use by field member UTF7: Encodings
  7. use by field member UTF8: Encodings
  8. use by field member UTF8WithoutBOM: Encodings
  9. use by field member UTF16: Encodings
  10. use by field member UTF32: Encodings
  11. use by field member GB2312: Encodings

[Package {$package} version {$version} Index]