Enumeration

CFStringBuiltInEncodings

Encodings that are built-in on all platforms on which macOS runs.

Declaration

enum CFStringBuiltInEncodings : CFStringEncoding

Topics

Constants

case macRoman

An encoding constant that identifies the Mac Roman encoding.

case windowsLatin1

An encoding constant that identifies the Windows Latin 1 encoding (ANSI codepage 1252).

case isoLatin1

An encoding constant that identifies the ISO Latin 1 encoding (ISO 8859-1)

case nextStepLatin

An encoding constant that identifies the NextStep/OpenStep encoding.

case ASCII

An encoding constant that identifies the ASCII encoding (decimal values 0 through 127).

case unicode

An encoding constant that identifies the Unicode encoding.

case UTF8

An encoding constant that identifies the UTF 8 encoding.

case nonLossyASCII

An encoding constant that identifies non-lossy ASCII encoding.

static var UTF16: CFStringBuiltInEncodings

An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16Format encoding (alias of kCFStringEncodingUnicode).

case UTF16BE

An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16BEFormat encoding. This constant specifies big-endian byte order.

case UTF16LE

An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF16LEFormat encoding. This constant specifies little-endian byte order.

case UTF32

An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32Format encoding.

case UTF32BE

An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32BEFormat encoding. This constant specifies big-endian byte order.

case UTF32LE

An encoding constant that identifies kTextEncodingUnicodeDefault + kUnicodeUTF32LEFormat encoding. This constant specifies little-endian byte order.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software