summaryrefslogtreecommitdiff
path: root/core/variant_parser.cpp
diff options
context:
space:
mode:
authorPaul Trojahn <paul.trojahn@gmail.com>2019-03-07 23:17:40 +0100
committerPaul Trojahn <paul.trojahn@gmail.com>2019-03-08 12:27:14 +0100
commita7430a9d060614169dd00117adc00ffab2a245a7 (patch)
tree5990930e44a4c3bfabe8f0421f1b6aed99a1d33e /core/variant_parser.cpp
parentb69569415f6a3c7e8d15c6f58775260eba2bc09d (diff)
Support UTF-8 input action names
Fixes #26380
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 0056fc75b6..6aa74c068a 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);