The preview of text files is wrong if text contains accents. Example: the file "aa.txt" contains the text "test-éèà" The preview displays "test-???" (see screenshot) If the file is opened with kwrite => no problem. Rem: the problem is present depending of the encoding of the file: - with "UTF-8 Unicode text": no problem - with "ISO-8859 text" or "Non-ISO extended-ASCII text" => problem in dolphin (but not in kwrite or other editor) [the name of the encoding is the result of the 'file' command] Reproducible: Always The problem is the same in the main view of dolphin if in preview mode. But it less visible since the preview is little.
Created attachment 77876 [details] wrong preview in dolphin
Thanks for the bug report, but Dolphin itself does not generate the previews. I hope that kio/thumbnail is the right product.
Problem still present with - Dolphin 17.08.1 - KDE Frameworks 5.40.0
Cannot reproduce on Arch Linux, dolphin 17.12.1, frameworks 5.42.
Created attachment 110019 [details] wrong thumbnail I have still the problem, as you can see on the attached screenshot: a.txt and b.txt files contain the same data "tést" but with different encoding: a.txt: UTF-8 Unicode text b.txt: ISO-8859 text The thumbnail for b.txt is wrong in the main view of dolphin and in the right panel. a.txt is correct. dolphin 17.08.1 KDE Frameworks 5.42.0 @Dr Chapatin: Strange that you don't have the same issue. Any idea what could cause that issue on my system ? (we have same version of frameworks)...
(In reply to Nicofo from comment #5) > @Dr Chapatin: Strange that you don't have the same issue. Any idea what > could cause that issue on my system ? (we have same version of frameworks)... No, sorry. I'm just an end user.
Works for me too with KDE Frameworks 5.47 and Dolphin 18.04.2 on KDE Neon with Qt 5.11. If anyone can reproduce the issue with these versions (or newer), please re-open.
Sorry, I reopen, this is not fixed for me. - KDE Frameworks 5.48.0 - Qt 5.11.1 (built against 5.11.1) - dolphin-18.04.3 Still same result as in screenshot of comment #5 What could make the difference between your installation and mine concerning this bug ?
Nicofo, could you attach a file that is causing you problems?
Created attachment 115349 [details] a-utf8.txt -> correctly displayed Attached: * a-utf8.txt -> correctly displayed * b-iso8859.txt -> wrongly displayed * screenshot of dolphin of both files
Created attachment 115350 [details] * b-iso8859.txt -> wrongly displayed
Created attachment 115351 [details] screenshot of dolphin of both files
The encoding auto-detection in the text thumbnailer was disabled, because it failed to detect UTF-8 most of the time. I remember I tested both KEncodingProber as well as KEncodingDetector back then; maybe there are changes in KEncodingProber today that make it work better. https://cgit.kde.org/kio-extras.git/tree/thumbnail/textcreator.cpp
(versions updated) - bug still present with: - KDE Frameworks 5.68.0 - Qt 5.13.2 (built against 5.13.2) - dolphin-19.12.2 - kio-extras-19.12.2-1.fc32.x86_64
This bug is happening on Arch Linux. KDE Plasma Version: 5.21 beta KDE Frameworks Version: 5.79.0 Qt Version: 5.15.2 Graphics Platform: Wayland
Created attachment 137836 [details] test file - windows-1252 encoding On my system I can reproduce with text files with windows-1252 encoding. I'm attaching a test file and a screenshot. Operating System: Arch Linux KDE Plasma Version: 5.21.4 KDE Frameworks Version: 5.81.0 Qt Version: 5.15.2 Graphics Platform: X11
Created attachment 137837 [details] screenshot of text file with windows-1252 encoding