Transmitting strings via tcp from a windows c++ client to a Java server



Hi all,

We have a C++ client which runs on Windows and that needs to transmit
char* / wchar* strings to and from a Java server.

The client should correctly handle both 'standard' languages & east
Asian
languages (i.e. using wchar).

Now, I'm sure there is a best practice for doing so , I just haven't
found it yet :-)

My best bet would be always encoding the string in UTF-8 before
sending
it via the net, but I could be wrong.

Your help will be highly appreciated.

Thanks,

Gilad

.



Relevant Pages

  • Re: String concatenation function, request for comments.
    ... >> left to the client. ... If the resultant buffer is needed beyond the second ... >> If the strings specified for concatenation exceed the buffer available, ... > This demonstrates a fragility of the interface. ...
    (comp.lang.c)
  • Re: Encoding issues with literal strings (C++)
    ... The client runs on Windows and is written ... have many messages that the server sends that include characters ... Some of these messages come from literal strings, ... the a with acute accent has the code 0xE1; ...
    (comp.os.linux.development.apps)
  • Re: multi threading/tasking?
    ... I've been asked to write a server application specifically in VFP that opens a port and listens for one line strings from clients. ... These strings contain info that is used in lookups and calculations on a centrals database or databases and then a response one line string is sent back to the client. ... Right now I have a tiny program that listens to a port accepts the connection from 1 client and echo's back any string that it's sent. ...
    (microsoft.public.fox.helpwanted)
  • Re: CORBA Server cannt running normally( with Naming Service & Notification Service)
    ... This version of TAO is several months old. ... Client COMPLING_ENVIROMENT: Windows XP ... CORBA Server RUNNING ENVIROMENT: SunOS 5.8 Korea Version ... Are you sending UTF-8 strings? ...
    (comp.object.corba)
  • Re: COM allocator
    ... Presume that the client is NOT in the ... LPSTR is a pointer to char, TCHAR might by char or wchar_t. ... Not all clients can handle char strings. ... For other raw memory use the COM task allocator obtained from CoGetMalloc. ...
    (microsoft.public.vc.language)