I'm receiving data through a socket....
socket = new Socket(server, port);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
This is coming from a remote server that I don't control.
Special characters are encoded, and if I print them out to the console they appear as diamond question marks.
If I telnet to the server and view the data it appears strange:
If I tell the server to send me 棥¿ÄÅüÇ, it displays in a telnet session as 棥¿Ã
Ã
üÃ
What can I do to make these special characters show up correctly?
socket = new Socket(server, port);
in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
This is coming from a remote server that I don't control.
Special characters are encoded, and if I print them out to the console they appear as diamond question marks.
If I telnet to the server and view the data it appears strange:
If I tell the server to send me 棥¿ÄÅüÇ, it displays in a telnet session as 棥¿Ã
Ã
üÃ
What can I do to make these special characters show up correctly?