Type Method


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


static func localizedName(of encoding: String.Encoding) -> String

See Also

Working with Encodings

static var availableStringEncodings: [String.Encoding]

Returns an Array of the encodings string objects support in the application’s environment.

static var defaultCStringEncoding: String.Encoding

Returns the C-string encoding assumed for any method accepting a C string as an argument.