Merge pull request #79980 from bruvzg/fix_test_str_errs

[String] Fix Unicode parsing error message encoding and related JSON tests.
This commit is contained in:
Rémi Verschelde
2023-08-09 15:20:16 +02:00
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));
}