Alex She <alexshe,Hi��

����
>Jabberd use expat parser which uses UTF8 . UTF8 can convert unicode easily, and 
>all you need to do is convert unicode to your native encoding,I think you use 
>early windows 95 platform which not support unicode , but your native encoding 
>may be GBK not gb2312 exactly, you can find a code table named cp936.txt for 
>GBK and cp950 for BIG5 from http://www.unicode.org/pub .I am not sure for exact 
>directory, but you can find it. 
        Yes, you are right.The jabberd use UTF8 on the fly.But How can I Convert it to 
native code?
When I recv the message, I got the UTF8 byte stream. I can easily convert it to 
unicode. Now I do not
know which encoding I should use to convert to native. I can not get charset of the 
message from jabber protocol.

   -- UTF8 byte stream -> jabberd -- UTF8 byte stream --> unicode ---- GBK or BIG5 ? 
-> native?

        Thanks for u info.

>A more reason solution you can what is your native encoding and convert to it 
>in your code. a few days ago , I wrote some functions GBK2UNICODE and UNICODE 
>2GBK, I do it query the code table but I can not find a good algorithm, if you 
>get pls. tell me.
        In client side, I am using VC++ and JabberCOM. In server side, I use java. I 
can easily get unicode.

>If you have further question , feel free to mail me.
>> Alex She <alexshe,Hi��
>> 
>>      Yes, I have tried that.
>>      I sent a message from gb2312 encoding client to big5 encoding
>> client.The original byte stream is "d4acd6ceb9fa".But I got "b04baa763f"
>> from jabberCOM in big5 encoding client.It is wrong. How can I convert it
>> to native?
>>      Thanks.
>> 
>> >convert to local,
>> >1cn.com>:> Hi,
>> >> 
>> >>   Is there any Non english messages solution? My Friend and I use
>> >> winjabber to chat.But we use different encoding. One is
>> >>  gb2312, the other is big5.we can not see the messages each other.
>> >>   Thanks for any info.
>> >> 
>> >> Regards,
>> >> 
>> >> - Lg
>> >> 
>> >> 2001-9-21 21:38:08
>> >> 
>> >> --
>> >>   Gang Liu / Vista Team / ShenZhen City / China
>> >>   Email: [EMAIL PROTECTED]  &  [EMAIL PROTECTED]
>> >>   Phone: +86 13923425035   
>> >>   ICQ: 70670666
>> >>   Web: Coming ....
>> >> 
>> >> _______________________________________________
>> >> jdev mailing list
>> >> [EMAIL PROTECTED]
>> >> http://mailman.jabber.org/listinfo/jdev
>> >> 
>> >
>> >
>> >-------------------------------------------------
>> >This mail sent through IMP: mail.wizdomtech.com
>> >_______________________________________________
>> >jdev mailing list
>> >[EMAIL PROTECTED]
>> >http://mailman.jabber.org/listinfo/jdev
>> 
>> = = = = = = = = = = = = = = = = = = = =
>>                      
>> 
>> 
>> _______________________________________________
>> jdev mailing list
>> [EMAIL PROTECTED]
>> http://mailman.jabber.org/listinfo/jdev
>> 
>
>
>-------------------------------------------------
>This mail sent through IMP: mail.wizdomtech.com
>_______________________________________________
>jdev mailing list
>[EMAIL PROTECTED]
>http://mailman.jabber.org/listinfo/jdev

= = = = = = = = = = = = = = = = = = = =
                        
               Gang Liu
               [EMAIL PROTECTED]
                                        2001-09-25 
_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to