diff --git a/Userland/Libraries/LibTextCodec/Decoder.cpp b/Userland/Libraries/LibTextCodec/Decoder.cpp index 71795a265e..57695ec847 100644 --- a/Userland/Libraries/LibTextCodec/Decoder.cpp +++ b/Userland/Libraries/LibTextCodec/Decoder.cpp @@ -7,6 +7,7 @@ #include #include +#include #include namespace TextCodec { @@ -215,7 +216,7 @@ String Decoder::to_utf8(StringView input) void UTF8Decoder::process(StringView input, Function on_code_point) { - for (auto c : input) { + for (auto c : Utf8View(input)) { on_code_point(c); } }