From 0ead759364d992726eda79ee760dee29853fdd98 Mon Sep 17 00:00:00 2001 From: Felix Kauselmann Date: Sat, 22 Apr 2023 20:11:21 +0200 Subject: [PATCH] QRCode: Use UTF8 chars for code generation QString.append() expects UTF8 chars, but this is not standard on all platforms. --- YACReaderLibraryServer/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/YACReaderLibraryServer/main.cpp b/YACReaderLibraryServer/main.cpp index 24c0fa7f..6fd56100 100644 --- a/YACReaderLibraryServer/main.cpp +++ b/YACReaderLibraryServer/main.cpp @@ -80,9 +80,9 @@ void printServerInfo(YACReaderHttpServer *httpServer) for (int x = -border - 1; x < code.getSize() + border + 1; x++) { QRCodeString.append((code.getModule(x, y) && code.getModule(x, y + 1)) ? " " - : code.getModule(x, y + 1) ? "\u2580" - : code.getModule(x, y) ? "\u2584" - : "\u2588"); + : code.getModule(x, y + 1) ? u8"\u2580" + : code.getModule(x, y) ? u8"\u2584" + : u8"\u2588"); } QLOG_INFO() << QRCodeString; }