Unverified Commit 77c88a63 by Rémi Verschelde Committed by GitHub

Merge pull request #37097 from Calinou/tweak-invalid-unicode-error-message

Tweak the invalid Unicode error message to be more descriptive
parents f9decec1 05c95837
......@@ -1402,7 +1402,7 @@ String String::utf8(const char *p_utf8, int p_len) {
bool String::parse_utf8(const char *p_utf8, int p_len) {
#define _UNICERROR(m_err) print_line("Unicode error: " + String(m_err));
#define _UNICERROR(m_err) print_line("Unicode parsing error: " + String(m_err) + ". Is the string valid UTF-8?");
if (!p_utf8)
return true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment