Contents

CFStringConvertEncodingToIANACharSetName(_:)

Returns the name of the IANA registry “charset” that is the closest mapping to a specified string encoding.

Declaration

func CFStringConvertEncodingToIANACharSetName(_ encoding: CFStringEncoding) -> CFString!

Parameters

  • encoding:

    The Core Foundation string encoding to use.

Return Value

The name of the IANA “charset” that is the closest mapping to encoding. Returns NULL if the encoding is not recognized.

Discussion

The CFStringConvertIANACharSetNameToEncoding(_:) function is complementary to this function.

See Also

Working With Encodings