[SOLVED]How To Construct a QString from unicode code point beyond u+FFFF?
-
-
wrote on 1 Mar 2015, 04:27 last edited by
Your "solution" is dangerous. QString::fromUcs4() requires a NUL terminated UCS4 string if the length (second) argument is not specified. You are not providing a length or a NUL here. That it does not crash is just a happy coincidence.
@
QString str = QString::fromUcs4(&ui, 1);
@ -
wrote on 1 Mar 2015, 04:42 last edited by
Hi ChrisW67,
Yes, you are right. I forgot the important argument. Thank you!
1/5