summaryrefslogtreecommitdiff
path: root/core/variant_parser.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-22 12:02:05 +0200
committerGitHub <noreply@github.com>2019-04-22 12:02:05 +0200
commit05dda9f87c9b71e92572120561ec09065b6dedec (patch)
tree428a0c639b60740631925de715b5637f1d13c218 /core/variant_parser.cpp
parent5881c6505b71d82fd7a5b84981a946dea25b5b0a (diff)
parenta7430a9d060614169dd00117adc00ffab2a245a7 (diff)
Merge pull request #26787 from ptrojahn/utf8assign
Support UTF-8 input action names
Diffstat (limited to 'core/variant_parser.cpp')
-rw-r--r--core/variant_parser.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/variant_parser.cpp b/core/variant_parser.cpp
index 6377197282..d7371b0434 100644
--- a/core/variant_parser.cpp
+++ b/core/variant_parser.cpp
@@ -1542,6 +1542,9 @@ Error VariantParser::parse_tag_assign_eof(Stream *p_stream, int &line, String &r
} else if (c != '=') {
what += String::chr(c);
} else {
+ if (p_stream->is_utf8()) {
+ what.parse_utf8(what.ascii(true).get_data());
+ }
r_assign = what;
Token token;
get_token(p_stream, token, line, r_err_str);