Re: QSring utf8 and latin1
Why do you expect the result to be true?
You have two identical string literals containing non-ascii characters and pass them through two different codec functions.
Naturally you end up with two different results as each codec function interprets those non-ascii characters differently.
Which one of those is getting the correct interpretation depends on the encoding of your sources file:
if the source file is encoded in UTF-8, then the string literals is UTF-8, so fromUtf8() will generate the correct QString
Cheers,
_