Build system changed to Cmake, ORM changed to QxORM, Qt6 compatibility.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
#include <settingsservice.h>
|
||||
#include <settings/globalsettings.h>
|
||||
|
||||
#include <QTextCodec>
|
||||
//#include <QTextCodec>
|
||||
#include <QFile>
|
||||
|
||||
#ifdef _WIN32
|
||||
@@ -349,6 +349,7 @@ QByteArray ReceiptGenerator::prepareString(const QString &str)
|
||||
strOut = strOut.replace(DIACRITIC.at(i), NON_DIACRITIC.at(i));
|
||||
}
|
||||
|
||||
QTextCodec *codec = QTextCodec::codecForName("IBM850");
|
||||
return codec->fromUnicode(strOut);
|
||||
//QTextCodec *codec = QTextCodec::codecForName("IBM850");
|
||||
//return codec->fromUnicode(strOut);
|
||||
return strOut.toLatin1();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user