mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-30 19:37:21 +02:00
The Encoding specification maps ISO-8859-1 to windows-1252 and expects the windows-1252 translation table to be used, which differs from ISO-8859-1 for 0x80-0x9F. Other contexts expect to get the actual ISO-8859-1 encoding, with 1-to-1 mapping to U+0000-U+00FF, when requesting it. `decoder_for_exact_name` is introduced, which skips the mapping from aliases to the encoding name done by `get_standardized_encoding`. (cherry picked from commit 6b2c4599017f512279cb26c0d3c48aa5a9453007)