summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-05-28 19:10:10 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-05-28 19:10:10 +0300
commit7ce09a842f90f43268f74afb9bbb67a7b6bf7749 (patch)
treea3c6d04e3c456222f1d77053a3858dbfd2e9d014
parent5ab73a190c76b8d43a19866451f6aaca0895781d (diff)
replace some unicode symbols
-rw-r--r--plugins/NewsAggregator/Src/Utils.cpp19
1 files changed, 18 insertions, 1 deletions
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"&#163;", L"£"); //pound
+ result.Replace(L"&#178;", L"²"); //sup2
+ result.Replace(L"&#235;", L"ë"); //euml
+ result.Replace(L"&#246;", L"ö"); //ouml
+ result.Replace(L"&#382;", L"ž"); //Latin Small Letter Z With Caron
+ result.Replace(L"и&#774;", L"й"); //Combining Breve
+ //result.Replace(L"&#769;", L""); //Combining Acute Accent острое ударение
+ result.Replace(L"&#1123;", L"ѣ"); //Cyrillic Small Letter Yat
+ result.Replace(L"&#8203;", L"");
+ result.Replace(L"&#8206;", L""); //lrm
+ result.Replace(L"&#8207;", L""); //rlm
+ result.Replace(L"&#8209;", L"‑"); //Non-Breaking Hyphen
+ result.Replace(L"&#8227;", L"‣"); //Triangular Bullet
+ result.Replace(L"&#8722;", L"−"); //minus
+ result.Replace(L"&#9786;", L"☺"); //White Smiling Face
+ result.Replace(L"&#65279;", L"");
+
return result;
}