I need to solve the problem opposite to this one. I have QString with non-ascii symbols.
For example:
Schöne Grüße
How to get the length of the string in bytes for UTF8 case? It should be 15.
I have tried conversion to ByteArray
, to Latin1
, ASCII
but length is always the same.