From e609b4464d06468753f640c7eccabdcc5543df36 Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Fri, 12 Jan 2018 18:31:53 +0200 Subject: [PATCH] Fix non-utf8 text in commit 31ed5214f023f99a40d3e73938d95ac630c26d13 --- Telegram/SourceFiles/ui/text/text_entity.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/ui/text/text_entity.cpp b/Telegram/SourceFiles/ui/text/text_entity.cpp index e4adc0e9e..88f06180b 100644 --- a/Telegram/SourceFiles/ui/text/text_entity.cpp +++ b/Telegram/SourceFiles/ui/text/text_entity.cpp @@ -44,9 +44,8 @@ QString ExpressionMailNameAtEnd() { } QString ExpressionSeparators(const QString &additional) { - // UTF8 quotes: «»“”‘’ - const auto quotes = QString::fromUtf8("\xC2\xAB\xC2\xBB\xE2\x80\x9C\xE2\x80\x9D\xE2\x80\x98\xE2\x80\x99"); - return qsl("\\s\\.,:;<>|'\"\\[\\]\\{\\}\\~\\!\\?\\%\\^\\(\\)\\-\\+=\\x10") + quotes + additional; + const auto utf8quotes = QString::fromUtf8("\xC2\xAB\xC2\xBB\xE2\x80\x9C\xE2\x80\x9D\xE2\x80\x98\xE2\x80\x99"); + return qsl("\\s\\.,:;<>|'\"\\[\\]\\{\\}\\~\\!\\?\\%\\^\\(\\)\\-\\+=\\x10") + utf8quotes + additional; } QString ExpressionHashtag() {