AK: Replace surrogates in String::from_utf8_with_replacement_character

We are expected to replace lonely surrogates with U+FFFD when decoding
UTF-8 text.
This commit is contained in:
Timothy Flynn
2025-07-05 12:00:04 -04:00
committed by Shannon Booth
parent 51afbf5280
commit 01ebf1eb07
Notes: github-actions[bot] 2025-07-05 16:31:19 +00:00
4 changed files with 18 additions and 5 deletions

View File

@@ -1,2 +1,3 @@
[ABC]
[]
[fffd]