Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Mar : TIdCmdTCPServer - how to communicate widestring data? (Delphi7)

www.cryer.info
Managed Newsgroup Archive

TIdCmdTCPServer - how to communicate widestring data? (Delphi7)

Subject:TIdCmdTCPServer - how to communicate widestring data? (Delphi7)
Posted by:"Maxim Shiryaev" (maximshirya..@mail.ru)
Date:Wed, 22 Mar 2006 22:09:23

Hello.

I need to communicate widestring data between my client and TIdCmdTCPServer.
I understand that RFC protocol is ANSI only, is it? I'm looking for a
recommended way to pass widestring data in all placess: command paramenters,
replies and responses.

I know about "%"s in URL passed in HTTP GET methods. I know that I can
encode everything in BASE64 in parameters and replies. What is the most
standard way?

And more. My server should work with .NET client (non-Indy).
It will use StreamWriter->ClientSocket. The StreamWriter can use an encoding
as a constructor parameter (UTF-8,16, etc.). If I try to pass a command from
this .NET client the server does not respond. I think it cannot detect UFT-8
CR/LF, can it? If I chooses ASCII encoding everything is OK except for the
national characters converted to question marks.

May be you will point me to some RFC on this subject?

Thanks.

Maxim.

Replies:

www.cryer.info
Managed Newsgroup Archive