mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 19:59:17 +00:00
LibTextCodec+Everywhere: Port Decoders to new Strings
This commit is contained in:
parent
3c5090e172
commit
2db168acc1
Notes:
sideshowbarker
2024-07-17 00:00:59 +09:00
Author: https://github.com/AtkinsSJ
Commit: 2db168acc1
Pull-request: https://github.com/SerenityOS/serenity/pull/17511
Reviewed-by: https://github.com/ADKaster
Reviewed-by: https://github.com/nico
21 changed files with 149 additions and 123 deletions
|
@ -885,7 +885,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
auto decoder = TextCodec::decoder_for("windows-1252"sv);
|
||||
VERIFY(decoder.has_value());
|
||||
|
||||
auto utf8_source = TextCodec::convert_input_to_utf8_using_given_decoder_unless_there_is_a_byte_order_mark(*decoder, source);
|
||||
auto utf8_source = TRY(TextCodec::convert_input_to_utf8_using_given_decoder_unless_there_is_a_byte_order_mark(*decoder, source));
|
||||
builder.append(utf8_source);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue