Returns a human-readable string giving the name of a given encoding.
SDKs
- iOS 7.0+
- macOS 10.9+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Xcode 8.0+
Framework
- Foundation
Returns a human-readable string giving the name of a given encoding.
SDKs
Framework
static var available String Encodings: [String .Encoding]
Returns an Array of the encodings string objects support in the application’s environment.
static var default CString Encoding: String .Encoding
Returns the C-string encoding assumed for any method accepting a C string as an argument.