Intrafoundation Software
Making Atomic Warfare Fun Again
 

Need a shoulder to cry on while trying to convince Windows to properly work with our software? Just want to chat about something related to the site? Feel free to use the forums slash news slash blog.

(Unsolicited commercial spam will be deleted, obviously.)

[Looking for something?]
Looking for something?
This is thread 117. The complete list of threads is available on the main forums page.
Subject: tcpclient support Chinese GB code and unicode?
Author: Kenny
Date/Time: 9/11/2002 9:40:58 PM (117.0)
Hi,

I want to know whether tcpclient support sending Chinese GB code and unicode text in SendRN command?

Before issuing the sendRN command, I print the data (with Chinese GB code) and it is fine. But at the receving end, the receving text has something like "tcp.cpp Line 793] REC", not the expected Chinese GB code.

Do you know how to solve it. Do I need to do some encoding (such as URL encoding) before sending and decode it at the receving end? Any other solution such as upgrade? Thanks.

The tcpclientcom.dll version I am using is of date 11 July 2002.

Regards,
Kenny
Subject: RE:tcpclient support Chinese GB code and unicode?
Author: Lewis Sellers
Date/Time: 4/9/2003 7:02:09 AM (160.117)
No. It sends only 8-bit data.

One of these days when I have the time I was going to make a unicode-aware version. You can get around this issue by treating the data as pure data and not text -- ie, use Recv and parse the raw data yourself.

A bit of a hassle though.

--min


REPLY
Author:
Subject:
Your
Message:
Email: (optional)
(Note: For safety all HTML in your message text may be printed exactly as you typed it.)
top