microsoft-visualbasic-runtime/Text/IO/Encodings.vb

87 lines
2.6 KiB
VB.net
Raw Normal View History

2020-05-21 22:27:25 +08:00
#Region "Microsoft.VisualBasic::2a5d321babc2b043212c8da631cfb5ea, Microsoft.VisualBasic.Core\Text\IO\Encodings.vb"
' Author:
'
' asuka (amethyst.asuka@gcmodeller.org)
' xie (genetics@smrucc.org)
' xieguigang (xie.guigang@live.com)
'
' Copyright (c) 2018 GPL3 Licensed
'
'
' GNU GENERAL PUBLIC LICENSE (GPL3)
'
'
' This program is free software: you can redistribute it and/or modify
' it under the terms of the GNU General Public License as published by
' the Free Software Foundation, either version 3 of the License, or
' (at your option) any later version.
'
' This program is distributed in the hope that it will be useful,
' but WITHOUT ANY WARRANTY; without even the implied warranty of
' MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
' GNU General Public License for more details.
'
' You should have received a copy of the GNU General Public License
' along with this program. If not, see <http://www.gnu.org/licenses/>.
' /********************************************************************************/
' Summaries:
' Enum Encodings
'
' GB2312, Unicode, UTF16, UTF32, UTF7
' UTF8, UTF8WithoutBOM
'
'
'
'
'
'
' /********************************************************************************/
#End Region
Imports System.Text
Namespace Text
''' <summary>
''' The text document encodings constant for text file read and write
''' </summary>
Public Enum Encodings As Byte
''' <summary>
''' <see cref="Encoding.Default"/>: Gets an encoding for the operating system's current ANSI code page.
''' </summary>
[Default] = 0
ASCII = 10
''' <summary>
''' Alias of the value <see cref="UTF16"/>.
''' (utf-16编码的别名所以使用这个编码的效果是和<see cref="UTF16"/>的效果是一样的)
''' </summary>
Unicode
UTF7
''' <summary>
''' 在Linux平台上面是<see cref="TextEncodings.UTF8WithoutBOM"/>而在Windows平台上面则是带有BOM的UTF8格式.
''' (HTML的默认的编码格式假若所保存的html文本出现乱码请考虑是不是应该要选择这个编码才行)
''' </summary>
UTF8
UTF8WithoutBOM
''' <summary>
''' VB.NET的XML文件的默认编码格式为utf-16
''' </summary>
UTF16
UTF32
''' <summary>
''' Text encoding for simplify Chinese.
''' </summary>
GB2312
End Enum
2020-05-21 22:27:25 +08:00
End Namespace