Problem converting byte[] to string



hi all, hope some one can help me, this prob is driving me mad.



im using sockets to communicate between a client and a server. I don't'
have control over the client and how it sends the data so i have had to try
and work out how it is doing it. From what i can see it is sending the data
in ASCII because if i try to use Unicode it just stops working, where's with
ASCII i can get response from it and send and receive data.



The problem.



The client sends to me a load of data, most of it is ok however some of the
data contains special text like §. When i try to decode one of these or
anything else like it the decoding just goes wrong and it reads it as a _.
I know that it must be possible because other people have been able to
communicate with the client and use these special characters but i can't
seem to.



Does any one have any ideas ?



Thx scott.


.



Relevant Pages

  • Re: question about ip addresses
    ... You are using a program to communicate to someone ... a client program, and one is the server program. ... This is neither unreasonable, nor a security issue. ... provider, your country, and likely one can deduce some more accurate ...
    (alt.computer.security)
  • Re: jboss normal client/server communication
    ... > some client side libraries for marshalling and setting up the ... > Setting up a servlet on the server and communicate directly with this ... The servlet could even emit ... > going to run in the same local area network as the server, ...
    (comp.lang.java.programmer)
  • Re: Sockets programming
    ... > I've been following a socket programming tutorial to make a simple TCP ... > However the structure of it is to have a server listening for requests from ... > client but only that one. ... > paragraph above to communicate with multiple clients at the same time on the ...
    (microsoft.public.vc.language)
  • Re: IPC and Threading in DLL
    ... If you need to arbitate between client apps, a service is probably best (it is possible in a driver, but its easier to keep this arbitration in user mode), but if you just need to allow access to the device without any arbitration then a driver may be needed ... have each client process communicate with this service through an IPC ... This DLL should communicate ...
    (microsoft.public.win32.programmer.kernel)
  • Re: jboss normal client/server communication
    ... some client side libraries for marshalling and setting up the ... Setting up a servlet on the server and communicate directly with this ...
    (comp.lang.java.programmer)