We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93fcaf3 commit 9dbe5e6Copy full SHA for 9dbe5e6
src/mainwindow.cpp
@@ -413,9 +413,10 @@ void MainWindow::loadPref() {
413
414
void MainWindow::load(QString path) {
415
QString chardet = charsetDetect(path);
416
- if (chardet == "ascii") {
417
- chardet = "utf-8";
418
- qDebug() << "Chardet returns ascii, use utf-8 instead.";
+ qDebug() << "Detected Charset:" << chardet;
+ if (chardet == "ASCII") {
+ chardet = "UTF-8";
419
+ qDebug() << "Chardet returns ASCII, use UTF-8 instead.";
420
}
421
422
// validates chardet result
0 commit comments