Contents

CFStringConvertEncodingToWindowsCodepage(_:)

Returns the Windows codepage identifier that maps most closely to a given Core Foundation encoding constant.

Declaration

func CFStringConvertEncodingToWindowsCodepage(_ encoding: CFStringEncoding) -> UInt32

Parameters

  • encoding:

    The Core Foundation string encoding to use.

Return Value

The Windows codepage value that is closest to the Core Foundation encoding encoding. The behavior is undefined if an invalid string encoding is passed.

Discussion

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

See Also

Working With Encodings