This object represents an encoding that can be used when opening or saving text files. Encoding objects are created by the Encodings Object.
Properties (implemented by interface IEncoding)
Codepage
| IDL | [propget] HRESULT Codepage([out, retval] long* pValue) |
|---|---|
| .NET | Int32 Codepage[get] |
| VB6 | Codepage As Long |
The Windows codepage represented by the encoding. UCS-2LE is 1200, UCS2-BE is 1201, and EUC-JP is 51932.
The property is read-only.
LittleEndian
| IDL | [propget] HRESULT LittleEndian([out, retval] VARIANT_BOOL* pValue) |
|---|---|
| .NET | Boolean LittleEndian[get] |
| VB6 | LittleEndian As Boolean |
Specifies whether the encoding object represents little endian UCS-2.
The property is read-only.
Name
| IDL | [propget] HRESULT Name([out, retval] BSTR* pValue) |
|---|---|
| .NET | String Name[get] |
| VB6 | Name As String |
A descriptive name for the encoding.
The property is read-only.
PersistentName
| IDL | [propget] HRESULT PersistentName([out, retval] BSTR* pValue) |
|---|---|
| .NET | String PersistentName[get] |
| VB6 | PersistentName As String |
A persistable name for the encoding. This is used by the csDefaultEncoding string preference.
The property is read-only.
UsesByteOrderMarker
| IDL | [propget] HRESULT UsesByteOrderMarker([out, retval] VARIANT_BOOL* pValue) |
|---|---|
| .NET | Boolean UsesByteOrderMarker[get] |
| VB6 | UsesByteOrderMarker As Boolean |
Specifies whether the encoding will write a byte order marker at the start of files saved using the encoding.
The property is read-only.
| Related topics |
|---|
