Options for converting string encodings.
SDKs
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
Framework
- Foundation
Declaration
struct EncodingConversionOptions
Overview
These constants are available in OS X v10.4; they are, however, differently named:
typedef enum {
NSAllowLossyEncodingConversion = 1,
NSExternalRepresentationEncodingConversion = 2
} NSStringEncodingConversionOptions;
You can use them in OS X v10.4 if you define the symbols as extern constants.