#[repr(u64)]pub enum Encoding {
Show 23 variants
ASCII = 1,
NEXTSTEP = 2,
JapaneseEUC = 3,
UTF8 = 4,
ISOLatin1 = 5,
Symbol = 6,
NonLossyASCII = 7,
ShiftJIS = 8,
ISOLatin2 = 9,
Unicode = 10,
WindowsCP1251 = 11,
WindowsCP1252 = 12,
WindowsCP1253 = 13,
WindowsCP1254 = 14,
WindowsCP1250 = 15,
ISO2022JP = 21,
MacOSRoman = 30,
UTF16BigEndian = 2_415_919_360,
UTF16LittleEndian = 2_483_028_224,
UTF32 = 2_348_810_496,
UTF32BigEndian = 2_550_137_088,
UTF32LittleEndian = 2_617_245_952,
Proprietary = 65_536,
}
Expand description
The following constants are provided by NSString as possible string encodings.
Variants§
ASCII = 1
Strict 7-bit ASCII encoding within 8-bit chars; ASCII values 0…127 only.
NEXTSTEP = 2
8-bit ASCII encoding with NEXTSTEP extensions.
JapaneseEUC = 3
8-bit EUC encoding for Japanese text.
UTF8 = 4
An 8-bit representation of Unicode characters, suitable for transmission or storage by ASCII-based systems.
ISOLatin1 = 5
8-bit ISO Latin 1 encoding.
Symbol = 6
8-bit Adobe Symbol encoding vector.
NonLossyASCII = 7
7-bit verbose ASCII to represent all Unicode characters.
ShiftJIS = 8
8-bit Shift-JIS encoding for Japanese text.
ISOLatin2 = 9
8-bit ISO Latin 2 encoding.
Unicode = 10
The canonical Unicode encoding for string objects.
WindowsCP1251 = 11
Microsoft Windows codepage 1251, encoding Cyrillic characters; equivalent to AdobeStandardCyrillic font encoding.
WindowsCP1252 = 12
Microsoft Windows codepage 1252; equivalent to WinLatin1.
WindowsCP1253 = 13
Microsoft Windows codepage 1253, encoding Greek characters.
WindowsCP1254 = 14
Microsoft Windows codepage 1254, encoding Turkish characters.
WindowsCP1250 = 15
Microsoft Windows codepage 1250; equivalent to WinLatin2.
ISO2022JP = 21
ISO 2022 Japanese encoding for email.
MacOSRoman = 30
Classic Macintosh Roman encoding.
UTF16BigEndian = 2_415_919_360
UTF16 encoding with explicit endianness specified.
UTF16LittleEndian = 2_483_028_224
UTF16 encoding with explicit endianness specified.
UTF32 = 2_348_810_496
32-bit UTF encoding.
UTF32BigEndian = 2_550_137_088
UTF32 encoding with explicit endianness specified.
UTF32LittleEndian = 2_617_245_952
UTF32 encoding with explicit endianness specified.
Proprietary = 65_536
Installation-specific encoding.