File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed
Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1313#include < QPalette>
1414#include < QSettings>
1515#include < QFrame>
16- #include < QTextCodec >
16+ #include < QStringConverter >
1717
1818const QString GPL_TEXT = R"( GNU GENERAL PUBLIC LICENSE
1919Version 3, 29 June 2007
@@ -40,9 +40,9 @@ void transform_csv(const QString &input_path, const QString &output_path) {
4040 QTextStream in (&inFile);
4141 QTextStream out (&outFile);
4242
43- // UTF-8 Encoding für Umlaute
44- in.setCodec ( " UTF-8 " );
45- out.setCodec ( " UTF-8 " );
43+ // UTF-8 Encoding für Umlaute (Qt 6 Syntax)
44+ in.setEncoding (QStringConverter::Utf8 );
45+ out.setEncoding (QStringConverter::Utf8 );
4646
4747 QStringList headers;
4848 QList<QStringList> new_rows;
@@ -296,9 +296,6 @@ QString getLightModeStyles() {
296296int main (int argc, char *argv[]) {
297297 QApplication app (argc, argv);
298298
299- // UTF-8 Support für Umlaute
300- QTextCodec::setCodecForLocale (QTextCodec::codecForName (" UTF-8" ));
301-
302299 // App-Einstellungen
303300 app.setOrganizationName (" MoritzBreier" );
304301 app.setApplicationName (" CSV_IServ_Converter" );
You can’t perform that action at this time.
0 commit comments