diff --git a/cockatrice/src/filter_string.cpp b/cockatrice/src/filter_string.cpp index 1c1d2787..63758371 100644 --- a/cockatrice/src/filter_string.cpp +++ b/cockatrice/src/filter_string.cpp @@ -337,7 +337,7 @@ static void setupParserRules() FilterString::FilterString(const QString &expr) { - QByteArray ba = expr.simplified().toLocal8Bit(); + QByteArray ba = expr.simplified().toUtf8(); std::call_once(init, setupParserRules); diff --git a/common/expression.cpp b/common/expression.cpp index 0bb1f5ee..370a3864 100644 --- a/common/expression.cpp +++ b/common/expression.cpp @@ -95,7 +95,7 @@ double Expression::eval(const peg::Ast &ast) double Expression::parse(const QString &expr) { - QByteArray ba = expr.toLocal8Bit(); + QByteArray ba = expr.toUtf8(); math.enable_ast();