P
P
Pavel K2016-02-11 19:08:45
Qt
Pavel K, 2016-02-11 19:08:45

How to convert a QString with content like \u043E\u0441\u043B\u0435 to normal?

Greetings!
Suppose a string is written, for example, like this:
QString s = "\u043E\u0441\u043B\u0435";
I didn’t come up with it, but I need to decode it
, in my opinion, UTF-8 characters in it,
how can I rxcode it in the most beautiful way?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
J
Jacob E, 2016-02-12
@PavelK

https://bugreports.qt.io/browse/QTBUG-47316

P
Philipp, 2016-02-11
@zoonman

doc.qt.io/qt-5/qstring.html#fromUtf8

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question