Skip to content

Commit 17c1f49

Browse files
author
Andrés Rodríguez
committed
Fixed encoding for date shown in qrc header, now is proper UTF-8
1 parent 072a4ac commit 17c1f49

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/rcc/rcc.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -737,7 +737,7 @@ bool RCCResourceLibrary::writeHeader()
737737
writeString("** Resource object code\n");
738738
writeString("**\n");
739739
writeString("** Created: ");
740-
writeByteArray(QDateTime::currentDateTime().toString().toLatin1());
740+
writeByteArray(QDateTime::currentDateTime().toString().toUtf8());
741741
writeString("\n** by: The Resource Compiler for Qt version ");
742742
writeByteArray(QT_VERSION_STR);
743743
writeString("\n**\n");
@@ -749,7 +749,7 @@ bool RCCResourceLibrary::writeHeader()
749749
writeString("** Resource object code\n");
750750
writeString("**\n");
751751
writeString("** Created: ");
752-
writeByteArray(QDateTime::currentDateTime().toString().toLatin1());
752+
writeByteArray(QDateTime::currentDateTime().toString().toUtf8());
753753
writeString("\n** by: The Resource Compiler for Qt version ");
754754
writeByteArray(QT_VERSION_STR);
755755
writeString("\n**\n");

0 commit comments

Comments
 (0)