Type Property

availableStringEncodings

Returns a zero-terminated list of the encodings string objects support in the application’s environment.

Declaration

class var availableStringEncodings: UnsafePointer<UInt> { get }

Return Value

A zero-terminated list of the encodings string objects support in the application’s environment.

Discussion

Among the more commonly used encodings are:

See the NSStringEncoding type for a larger list and descriptions of many supported encodings. In addition to those encodings listed here, you can also use the encodings defined for CFString in Core Foundation; you just need to call the CFStringConvertEncodingToNSStringEncoding(_:) function to convert them to a usable format.

See Also

Related Symbols

class func localizedName(of: UInt)

Returns a human-readable string giving the name of a given encoding.