Returns the Core Foundation encoding constant that is the closest mapping to a given Windows codepage identifier.
SDKs
- iOS 2.0+
- macOS 10.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Core Foundation
Declaration
CFString Encoding CFStringConvertWindowsCodepageToEncoding(UInt32 codepage);
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 k
constant if the mapping is not known.
Discussion
The CFString
function is complementary to this function.