Contents

CFStringConvertWindowsCodepageToEncoding(_:)

Returns the Core Foundation encoding constant that is the closest mapping to a given Windows codepage identifier.

Declaration

func CFStringConvertWindowsCodepageToEncoding(_ codepage: UInt32) -> CFStringEncoding

Parameters

  • codepage:

    The Windows codepage identifier to use.

Return Value

The Core Foundation string encoding that is closest to the Windows codepage identifier codepage. Returns the kCFStringEncodingInvalidId constant if the mapping is not known.

Discussion

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

See Also

Working With Encodings