[String] Fix Unicode parsing error message encoding and related JSON tests.

This commit is contained in:
bruvzg
2023-07-28 12:19:05 +03:00
parent 41a7f6b380
commit 84a6f0d232
2 changed files with 7 additions and 5 deletions

View File

@ -1750,7 +1750,7 @@ Vector<uint8_t> String::hex_decode() const {
void String::print_unicode_error(const String &p_message, bool p_critical) const {
if (p_critical) {
print_error(vformat("Unicode parsing error, some characters were replaced with <20> (U+FFFD): %s", p_message));
print_error(vformat(U"Unicode parsing error, some characters were replaced with <20> (U+FFFD): %s", p_message));
} else {
print_error(vformat("Unicode parsing error: %s", p_message));
}