use utf8 instead of the system encoding (#4582)

* use utf8 instead of the system preference

* found another toLocal8Bit
This commit is contained in:
ebbit1q 2022-02-27 22:33:36 +01:00 committed by GitHub
parent 92ed53e13a
commit baaf261116
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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();