[][src]Module encoding::label

An interface for retrieving an encoding (or a set of encodings) from a string/numeric label.

Functions

encoding_from_whatwg_label

Returns an encoding from given label, defined in the WHATWG Encoding standard, if any. Implements "get an encoding" algorithm: http://encoding.spec.whatwg.org/#concept-encoding-get

encoding_from_windows_code_page

Returns an encoding from Windows code page number. http://msdn.microsoft.com/en-us/library/windows/desktop/dd317756%28v=vs.85%29.aspx Sometimes it can return a superset of the requested encoding, e.g. for several CJK encodings.