Support UTF-8 input action names

Fixes #26380
This commit is contained in:
Paul Trojahn 2019-03-07 23:17:40 +01:00
parent b69569415f
commit a7430a9d06
1 changed files with 3 additions and 0 deletions

View File

@ -1542,6 +1542,9 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r
} else if (c != '=') { } else if (c != '=') {
what += String::chr(c); what += String::chr(c);
} else { } else {
if (p_stream->is_utf8()) {
what.parse_utf8(what.ascii(true).get_data());
}
r_assign = what; r_assign = what;
Token token; Token token;
get_token(p_stream, token, line, r_err_str); get_token(p_stream, token, line, r_err_str);