如何获取UTF8大小写的字符串长度?它应该是15.我尝试过转换为ByteArray,转换为Latin1,ASCII但长度始终相同.
QString s = "Schöne Grüße"; QByteArray bytes = s.toUtf8(); int length = bytes.size(); //Number of bytes
http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/qbytearray.html#size