Why am I to explain someone elses statements?
Other way to go around is serialization. He write the software he know what he can expect. For example the integer may vary on differend CPU's and OSes but thats why Qt provide to us qint8, qint16, qint32, qint64. In this way we can guarantee that the size of bytes will be fixed. So lets say that even he do not have 0x00 on the end of the utf-8 string, he can use other methods around. For example his own protocol, lets say he knows that the first 2 bytes that come are the length of the string, then he will know how much to continue to read further. I know that you are aware of this, I just point it out to make the thing clear( and a bit offtopic ).
Ontopic: By my opinion the function in the API that yangyunzhao is talking about does not recognize utf-8.
buhuhuhuhu... this thread has killed all my reputation
Bookmarks