NSStringEncoding NSStringEncoding Enum

Definition

Encodings supported by NSString.Encode.

public enum NSStringEncoding
type NSStringEncoding = 
Inheritance
NSStringEncodingNSStringEncoding

Fields

ASCIIStringEncoding ASCIIStringEncoding 1

ASCII encoding contains, 7-bit of information stored in 8 bits.

ISO2022JP ISO2022JP 21
ISOLatin1 ISOLatin1 5

8-bit ISO/IEC 8859-1, also knows as Latin1 encoding.

ISOLatin2 ISOLatin2 9

8-bit ISO/IEC 8859-2, also knows as Latin2 encoding.

JapaneseEUC JapaneseEUC 3
MacOSRoman MacOSRoman 30
NEXTSTEP NEXTSTEP 2
NonLossyASCII NonLossyASCII 7
ShiftJIS ShiftJIS 8
Symbol Symbol 6
Unicode Unicode 10
UTF16BigEndian UTF16BigEndian 2415919360

16 bit-based variable length encoding, blocks are interpreted as big endian.

UTF16LittleEndian UTF16LittleEndian 2483028224

16 bit-based variable length encoding, blocks are interpreted as litle endian.

UTF32 UTF32 2348810496

32-bit unicode encoding.

UTF32BigEndian UTF32BigEndian 2550137088

32 bit encoding, blocks are interpreted as big endian.

UTF32LittleEndian UTF32LittleEndian 2617245952

32 bit encoding, blocks are interpreted as little endian.

UTF8 UTF8 4

8-bit based variable-length character encoding for Unicode.

WindowsCP1250 WindowsCP1250 15
WindowsCP1251 WindowsCP1251 11
WindowsCP1252 WindowsCP1252 12
WindowsCP1253 WindowsCP1253 13
WindowsCP1254 WindowsCP1254 14

Remarks

The encodings supported by NSData and NSString.

Applies to