[Qt-interest] Japanese text conversion problem
AngelWarrior
srikanth.bemineni at gmail.com
Wed Jul 22 19:14:01 CEST 2009
Hi,
I have an application where I need to transfer a text string from
application A to B
the transfered text contains parts ascii and part japanese string
a aaa a a a jjjjjjjjjjjjjjjjjjjjjjjjjjjjj
when I write the text to QSocket after converting to utf8, the same text is
messed up after receiving it on the other side
a aaa a a a jjjjjjjjjjjjjjjjjjjjjja aaa
I am getting the first characters appended at the end when I read it from
the socket and exact equivalent Japanese text is missing.The same thing is
working properly if I have complete ascii text.
//sending side
CloseMessage += "a aaa a a a jjjjjjjjjjjjjjjjjjjjjjjj\n";
QString pMsg = CloseMessage.toUtf8();
ScoutSocket->write(pMsg.toAscii.data(), pMsg.length());
//recieving end
while (CallerSocket->canReadLine()) {
command = CallerSocket->readLine();
// command = QString().fromUtf8( CallerSocket->readLine().data());
tried this also
}
--
_/\_
With Regards
SB Angel Warrior
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/3f2f71e7/attachment.html
More information about the Qt-interest-old
mailing list