SUMMARY I get Chinese characters instead of Polish diacritical marks while viewing Markdown files. STEPS TO REPRODUCE 1. Open any Markdown file with Polish diacritical marks in Okular OBSERVED RESULT 膮, 膰, 臋, 艂, 艅, 贸, 艣, 藕, EXPECTED RESULT ą, ć, ę, ł, ń, ó, ś, ź, ż SOFTWARE/OS VERSIONS Linux/KDE Plasma: Tumbleweed OpenSuse KDE Plasma Version: 5.17.0 KDE Frameworks Version: 5.63.0 Qt Version: 5.13.1 ADDITIONAL INFORMATION Other applications works as expected.
Created attachment 123395 [details] Test file Cannot confirm this (Discount 2.2.6, Okular 1.8.70) with the attached test file. Can you attach an example file that does not work? Thanks in advance for your answer.
Needs an example file.
Created attachment 123397 [details] Test file for Polish diacritical marks
Created attachment 123398 [details] Screenshot
Just added my example file. I get same problem with your test file.
Created attachment 123399 [details] Screenshot with Okular rendering of the test.md file Cannot confirm as well. :( Any ideas on how to reproduce this? What is your system locale (is it UTF-8-compatible)?
My locale is pl_PL.UTF-8 I don't have any idea how to reproduce it on other system. Okular doesn't have much options regarding markdown. Ghostwriter works just fine. But I prefer Okular for viewing markdown files.
The same problem appears with txt, but not in odt and pdf files.
Do you get any warning if you start okular from the command line (i.e. konsole)?
(In reply to Albert Astals Cid from comment #9) > Do you get any warning if you start okular from the command line (i.e. > konsole)? No, I don't get any error but when I open test.markdown file i get every time strange message: `discarding "Send sms via KDE Connect" ("ShareUrl")`
Sadly, needs someone to be able to reproduce it before being able to fix it
Cannot reproduce with https://bugs.kde.org/attachment.cgi?id=123397 - Polish diacritical marks are correct in Okular.
Created attachment 123491 [details] broken rendering in okular Happening for me; Fedora 31 - packaged okular 1.7.3
I can reproduce it too (openSUSE Leap 15.1 with latest Qt5/KF5/Okular from additional repos) if the file is displayed as normal text file. That happens even with the last kdelibs4 based version of Okular (16.08.3), which I tried OOC. ;-) If it is displayed as markdown, it apparently works fine here.
PS, I get this debug output if I set "Okular (Generator TXT)" to "Full Debug" in kdebugsettings: org.kde.okular.generators.txt: Detected "gb18030" encoding based on 3000 chars
right, so rendered as text looks wrong, all you that have wrong rendering, you probably don't have the markdown plugin installed. About the text rendering looking wrong itself when rendering as text not sure there's much we can do, maybe we could add an option to the txt backend to disable guessing the encoding?