From 7ce09a842f90f43268f74afb9bbb67a7b6bf7749 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 28 May 2017 19:10:10 +0300 Subject: replace some unicode symbols --- plugins/NewsAggregator/Src/Utils.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'plugins/NewsAggregator') diff --git a/plugins/NewsAggregator/Src/Utils.cpp b/plugins/NewsAggregator/Src/Utils.cpp index e9863f83a5..f14b246d62 100644 --- a/plugins/NewsAggregator/Src/Utils.cpp +++ b/plugins/NewsAggregator/Src/Utils.cpp @@ -1,4 +1,4 @@ -/* +/* Copyright (C) 2012 Mataes This is free software; you can redistribute it and/or @@ -462,6 +462,23 @@ LPCTSTR ClearText(CMStringW &result, const wchar_t *message) SysFreeString(bstrHtml); SysFreeString(bstrRes); + result.Replace(L"£", L"£"); //pound + result.Replace(L"²", L"²"); //sup2 + result.Replace(L"ë", L"ë"); //euml + result.Replace(L"ö", L"ö"); //ouml + result.Replace(L"ž", L"ž"); //Latin Small Letter Z With Caron + result.Replace(L"й", L"й"); //Combining Breve + //result.Replace(L"́", L""); //Combining Acute Accent острое ударение + result.Replace(L"ѣ", L"ѣ"); //Cyrillic Small Letter Yat + result.Replace(L"​", L""); + result.Replace(L"‎", L""); //lrm + result.Replace(L"‏", L""); //rlm + result.Replace(L"‑", L"‑"); //Non-Breaking Hyphen + result.Replace(L"‣", L"‣"); //Triangular Bullet + result.Replace(L"−", L"−"); //minus + result.Replace(L"☺", L"☺"); //White Smiling Face + result.Replace(L"", L""); + return result; } -- cgit v1.2.3