Contents

characterEncoding

The string encoding.

Declaration

static let characterEncoding: NSAttributedString.DocumentReadingOptionKey

Discussion

For plain text documents; NSNumber containing the unsigned int NSStringEncoding to override any encoding specified in an HTML document. The previous string constant was @"CharacterEncoding".

See Also

Getting the document options