summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmlbasicscript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/declarative/qml/qmlbasicscript.cpp')
-rw-r--r--src/declarative/qml/qmlbasicscript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/declarative/qml/qmlbasicscript.cpp b/src/declarative/qml/qmlbasicscript.cpp
index f8ef2e7..a0d749f 100644
--- a/src/declarative/qml/qmlbasicscript.cpp
+++ b/src/declarative/qml/qmlbasicscript.cpp
@@ -369,7 +369,7 @@ bool QmlBasicScript::compile(const Expression &expression)
{
if (!expression.expression.asAST()) return false;
- QByteArray expr = expression.expression.asScript().toLatin1();
+ QByteArray expr = expression.expression.asScript().toUtf8();
const char *src = expr.constData();
QmlBasicScriptCompiler bsc;