ladybird/Userland/Libraries/LibTextCodec
Simon Wanner 6b2c459901 LibTextCodec: Fix ISO-8859-1 vs. windows-1252 handling in web contexts
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`.
2024-06-04 10:21:07 +02:00
..
CMakeLists.txt LibTextCodec: Add GBK/GB18030 decoder 2024-05-31 07:56:26 +02:00
Decoder.cpp LibTextCodec: Fix ISO-8859-1 vs. windows-1252 handling in web contexts 2024-06-04 10:21:07 +02:00
Decoder.h LibTextCodec: Fix ISO-8859-1 vs. windows-1252 handling in web contexts 2024-06-04 10:21:07 +02:00
indexes.json LibTextCodec: Add GBK/GB18030 decoder 2024-05-31 07:56:26 +02:00