textEncodingName
The name of the text encoding provided by the response’s originating source.
Declaration
var textEncodingName: String? { get }Discussion
If no text encoding was provided by the protocol, this property’s value is nil.
You can convert this string to a CFStringEncoding value by calling CFStringConvertIANACharSetNameToEncoding(_:). You can subsequently convert that value to an NSStringEncoding value by calling CFStringConvertEncodingToNSStringEncoding(_:).