I think this is what you need:
(Find the occurrences of \ uCCCC using a regular expression and replace them with QChar by the Unicode number of the database in base 16)
QRegExp rx("(\\\\u[0-9a-fA-F]{4})"); int pos = 0; while ((pos = rx.indexIn(str, pos)) != -1) { str.replace(pos++, 6, QChar(rx.cap(1).right(4).toUShort(0, 16))); }
source share