wodXMPP1.SendText Support Chinese word - WeOnlyDo Discussion board

wodXMPP1.SendText Support Chinese word (General questions)

by zyq11111111, Wednesday, January 05, 2011, 12:52 (5072 days ago)

wodXMPP1.SendText Support Chinese word


wodXMPP1.SendText jid ,one Chinese word
cant receive
but wodXMPP1.SendText jid ,two Chinese word
can receive

and wodXMPP1.SendText jid ,three Chinese word
olny receive two Chinese word

tks

Re: wodXMPP1.SendText Support Chinese word

by wodDamir, Wednesday, January 05, 2011, 13:00 (5072 days ago) @ zyq11111111

Hi,

I just tried this, and it worked like a charm. In order to test, I used our IM C# sample, and started two instances of it.

Once connected, I was able to normally exchange numerous messages written using Chinese letters.

Is there any chance I can reproduce this issue on my side?

Regards,
Damba

Re: wodXMPP1.SendText Support Chinese word

by zyq11111111, Wednesday, January 05, 2011, 13:04 (5072 days ago) @ wodDamir

aha
i try u vb VBActiveX1. Simple

Re: wodXMPP1.SendText Support Chinese word

by wodDamir, Wednesday, January 05, 2011, 14:22 (5072 days ago) @ zyq11111111

Hi,

VB6 isn't Fully Unicode compatible. Actually, VB6 is, but most of the Controls aren't.

If I open the sample you mentioned, add Windows Form 2.0 Controls, and swap the TextBox and Label Controls in the sample with the 2.0 ones, it works just as it should.

I'm then able to normally exchange multiple messages with no problems at all. Also, all the text is displayed correctly.

Can you please try the same?

regards,
Damba

Re: wodXMPP1.SendText Support Chinese word

by zyq11111111, Wednesday, January 05, 2011, 16:08 (5072 days ago) @ wodDamir

tks
but i dont kown why
sent two word show ok
send one woed wrong
sned tree woed also ok

if Unicode case this wrong why two word show ok?

Re: wodXMPP1.SendText Support Chinese word

by woddrazen, Wednesday, January 05, 2011, 16:51 (5072 days ago) @ zyq11111111

Hi,


What happens if you try same using some other XMPP client? Does it work there or you receive same problem?


Drazen

Re: wodXMPP1.SendText Support Chinese word

by zyq11111111, Wednesday, January 05, 2011, 17:39 (5072 days ago) @ woddrazen

Hi,


What happens if you try same using some other XMPP client? Does it work there or you receive same problem?


Drazen

i try gtalk work ok
but i use wodxmmp ocx build a gtalk client receive same wrong

Re: 1.SendText Support Chinese word

by zyq11111111, Wednesday, January 05, 2011, 17:52 (5071 days ago) @ zyq11111111

i use gtalk send msg to my wodXMPP work ok
but use wodXMPP client send msg to gtalk
just sample wrong

so i think wodXMPP.sendtext maybe have bug
but _wodXMPP1_IncomingMessage work fine

Re: 1.SendText Support Chinese word

by zyq11111111, Wednesday, January 05, 2011, 18:10 (5071 days ago) @ zyq11111111

for Examples

if i use my wodxmpp Client sendto gtalk Client
wodXMPP1.SendText jid, “你”

gtalk Client cannot receive

if i use my wodxmpp Client sendto gtalk Client
wodXMPP1.SendText jid, “你好”

gtalk Client can receive 你好


if i use my wodxmpp Client sendto gtalk Client
wodXMPP1.SendText jid, “你好阿”

gtalk Client only can receive 你好

if i use my wodxmpp Client sendto gtalk Client
wodXMPP1.SendText jid, “你好阿你”

gtalk Client can receive 你好阿你

if i use my wodxmpp Client sendto gtalk Client
wodXMPP1.SendText jid, “你好阿你好”

gtalk Client only can receive 你好阿你


Re: 1.SendText Support Chinese word

by woddrazen, Wednesday, January 05, 2011, 18:41 (5071 days ago) @ zyq11111111

Hi,


Unfortunately I cannot duplicate your problem. Which version of wodXMPP you are using? You can check version in wodXMPP Version Property.

Also, is there any chance we can copy paste Chinese word/words you send in wodXMPP that produce problem?

I see those words on picture you sent us but I don't know how to send same on my side. Also, in wodXMPP you are using Gmail account or XMPP account?


Drazen

Re: 1.SendText Support Chinese word

by zyq11111111, Wednesday, January 05, 2011, 19:26 (5071 days ago) @ woddrazen

re:Which version of wodXMPP you are using? You can check version in wodXMPP Version Property.

wodXMPP Version 1.43


re:Also, is there any chance we can copy paste Chinese word/words you send in wodXMPP that produce problem?

u can copy and paste Chinese word/words in this url iwrite a text reply not pic
http://www.flickr.com/photos/57910343@N04/5327773908/

re;I see those words on picture you sent us but I don't know how to send same on my side. Also, in wodXMPP you are using Gmail account or XMPP account?
i use Gmail account

tks


Re: 1.SendText Support Chinese word

by zyq11111111, Wednesday, January 05, 2011, 19:46 (5071 days ago) @ zyq11111111

i make 5 photo in this Albums
http://www.flickr.com/photos/57910343@N04/
u can see ?

tks

Re: 1.SendText Support Chinese word

by woddrazen, Wednesday, January 05, 2011, 21:02 (5071 days ago) @ zyq11111111

Hi,


Can you please add this line to your code and send us output:
[code]MsgBox xmpp1.Version[/code]
I tried all to duplicate this issue on my side but it worked for me without any problem. I always receive correct result in Google talk.

What happens if you try to send same message with some third party XMPP client? You can try for example PSI, Pidgin or some other client.


Drazen

Re: 1.SendText Support Chinese word

by zyq11111111, Thursday, January 06, 2011, 08:10 (5071 days ago) @ woddrazen


MsgBox xmpp1.Version
show
demo 1.43.179

Re: 1.SendText Support Chinese word

by zyq11111111, Thursday, January 06, 2011, 08:34 (5071 days ago) @ zyq11111111

i try to send same message with PSI work fine.

so i think maybe wodXMPP1.SendText not notice that one chinese word have two byte

Re: 1.SendText Support Chinese word

by zyq11111111, Thursday, January 06, 2011, 10:33 (5071 days ago) @ zyq11111111

can u give another way to send text?
like

SEND: <message to 123123@jabber.org>
<body>Where are you?</body>
<message>

if wodXMPP1.SendText not Support Chinese word
i think maybe can use another way to send text?

tks

Re: 1.SendText Support Chinese word

by woddrazen, Thursday, January 06, 2011, 10:36 (5071 days ago) @ zyq11111111

Hi,


Problem is that this works on our side without any problem. I'm able to send Chinese word(words without any issue.

What happens if you send it directly from inside your code without using VB6 text box?


Drazen

Re: 1.SendText Support Chinese word

by zyq11111111, Thursday, January 06, 2011, 11:21 (5071 days ago) @ woddrazen

yes
i send one word cant receive
but send two word can

anway use vb textbox or not use is same

Re: 1.SendText Support Chinese word

by zyq11111111, Thursday, January 06, 2011, 11:27 (5071 days ago) @ zyq11111111

u try this code

Private Sub Command4_Click()
wodXMPP1.SendText Text3.Text, one chinese word


End Sub

Re: 1.SendText Support Chinese word

by zyq11111111, Thursday, January 06, 2011, 12:47 (5071 days ago) @ zyq11111111

u try this code

Private Sub Command4_Click()
wodXMPP1.SendText Text3.Text, one chinese word


End Sub

u try this code got what result?

Re: 1.SendText Support Chinese word

by woddrazen, Thursday, January 06, 2011, 12:53 (5071 days ago) @ zyq11111111

Hi,


Yes and it worked for me without any problem.

Here is my result:
http://dl.dropbox.com/u/3621080/result.jpg

Is there any chance you can try this inside VB.NET VS 2005 or higher?


Drazen

Re: 1.SendText Support Chinese word

by zyq11111111, Thursday, January 06, 2011, 14:19 (5071 days ago) @ woddrazen

i will setup a English version windows try