I'm getting from server data using signal and slot. Here is slot part:
QString text(this->reply->readAll());
Problem is, that in text variable will be unicode escape, for example:
\u043d\u0435 \u043f\u0430\u0440\u044c\u0441\u044f ;-)
Is there any way to convert this?
I think this is what you needed:
(Find occurrences of \uCCCC using regex and replace them by the QChar with unicode number CCCC in base 16)
Did you try:
http://doc.qt.io/qt-5/qstring.html#fromUtf8
Assuming it's Utf8, otherwise use
fromUtf16
How about this one??
By using the above snippet, you can replace the single slash to double slash, so that the single slash can be obtained as such. Hope it works.