I know the title is a bit confusing, even I don't know how to summarize it. Here is the issue.
I have two strings, one is an Extended ASCII (can be represented using QLatin1String
) and a Unicode String (can be represented by a QString
).
I am combining them using QString::arg()
method as below.
QLatin1String latinStr = "Adiós";
QString unicodeStr = "some Uniocode හාහාහා %1";
QString newStr = unicodeStr.arg(latinStr);
Now this newStr has my concatenated string. If I print newStr, it prints "?" for the extended ASCII. If I convert the newStr
to a QLatin1String
using QString::fromLatin1()
, the unicode part shows in a weird way.
Is there any way to solve this?