Contents

localizedName(of:)

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

Declaration

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

Parameters

  • encoding:

    A string encoding. For possible values, see String.Encoding.

Return Value

A human-readable string giving the name of encoding in the current locale.

See Also

Working with Encodings