[Qt-interest] Japanese text conversion problem
AngelWarrior
srikanth.bemineni at gmail.com
Wed Jul 22 20:47:40 CEST 2009
I have some couple of questions
1. When I get japanese text from a QlineEdit or a QTextbox , what is correct
method to store it in a QString
2. What is the correct transformation that has to be done before writing the
japenese text to a socket.
3. At the receiving end how to extract it back properly.
>From your reply
toUtf8() actually gives me a QByteAarray.What is the correct method to do it
?
Thank you
SB
On Wed, Jul 22, 2009 at 1:30 PM, AngelWarrior
<srikanth.bemineni at gmail.com>wrote:
> Is this anything related to the mess up happening.while transferring the
> text.
>
> On Wed, Jul 22, 2009 at 12:42 PM, Thiago Macieira <
> thiago.macieira at trolltech.com> wrote:
>
>> AngelWarrior wrote:
>> >QString pMsg = CloseMessage.toUtf8();
>>
>> This line is wrong.
>>
>> If it's UTF-8, you can't put it in a QString, since QString is UTF-16.
>> Keep it in a QByteArray.
>>
>> --
>> Thiago Macieira - thiago.macieira (AT) nokia.com
>> Senior Product Manager - Nokia, Qt Software
>> Sandakerveien 116, NO-0402 Oslo, Norway
>>
>> _______________________________________________
>> Qt-interest mailing list
>> Qt-interest at trolltech.com
>> http://lists.trolltech.com/mailman/listinfo/qt-interest
>>
>>
>
>
> --
> _/\_
> With Regards
> SB Angel Warrior
>
>
--
_/\_
With Regards
SB Angel Warrior
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090722/246bf200/attachment.html
More information about the Qt-interest-old
mailing list