From 83c01fae68fed8d5459efc99051f133ebb57d337 Mon Sep 17 00:00:00 2001 From: Syres916 <46537884+Syres916@users.noreply.github.com> Date: Thu, 20 Nov 2025 20:02:21 +0000 Subject: [PATCH] [Gui] Fix string encoding for document name --- src/Gui/Document.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Gui/Document.cpp b/src/Gui/Document.cpp index d8692b824b..a9723a3e4d 100644 --- a/src/Gui/Document.cpp +++ b/src/Gui/Document.cpp @@ -1414,11 +1414,11 @@ static bool checkCanonicalPath(const std::map& docs) auto docName = [](App::Document* doc) -> QString { if (doc->Label.getStrValue() == doc->getName()) { - return QString::fromLatin1(doc->getName()); + return QString::fromUtf8(doc->getName()); } return QStringLiteral("%1 (%2)").arg( QString::fromUtf8(doc->Label.getValue()), - QString::fromLatin1(doc->getName()) + QString::fromUtf8(doc->getName()) ); }; int count = 0;