[pim/kdepim-addons] kmail/editorconvertertextplugins/markdown/markdownlib: USe Utf8

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit a5d4ebed43b84ee49d089834bf2b039a654cbf04 by Laurent Montel.
Committed on 16/08/2026 at 07:36.
Pushed by mlaurent into branch 'master'.

USe Utf8

M  +2    -2    kmail/editorconvertertextplugins/markdown/markdownlib/markdownconverter.cpp

https://invent.kde.org/pim/kdepim-addons/-/commit/a5d4ebed43b84ee49d089834bf2b039a654cbf04

diff --git a/kmail/editorconvertertextplugins/markdown/markdownlib/markdownconverter.cpp b/kmail/editorconvertertextplugins/markdown/markdownlib/markdownconverter.cpp
index 4dc1a1f37..fbbc9f09e 100644
--- a/kmail/editorconvertertextplugins/markdown/markdownlib/markdownconverter.cpp
+++ b/kmail/editorconvertertextplugins/markdown/markdownlib/markdownconverter.cpp
@@ -32,8 +32,8 @@ char *external_codefmt(const char *src, int, void *)
     highLighter.setDefinition(repo.definitionForName(QStringLiteral("SystemC")));
     highLighter.setTheme(QGuiApplication::palette().color(QPalette::Base).lightness() < 128 ? repo.defaultTheme(KSyntaxHighlighting::Repository::DarkTheme)
                                                                                             : repo.defaultTheme(KSyntaxHighlighting::Repository::LightTheme));
-    highLighter.highlight(QString::fromLatin1(src));
-    QByteArray ba = result.toLatin1();
+    highLighter.highlight(QString::fromUtf8(src));
+    QByteArray ba = result.toUtf8();
     return qstrdup(ba.data());
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.