I am encountering the following kind of problem. I am trying to implement a chat applet that supports various languages such as korean, russian, chinese, japanese and scandinavian languages (characters �,�,�) etc.
The problem is that I am capable of producing text basically in any language (in a understable format so that on my own chat applet window everything gets outputted correctly) but others participating the chat aren't doing that. Instead of seeing real characters they see only question marks, ???.
What may be causing this?
Please help me out with this problem. I have already tested the following kind of approach like
String myUTF8=new String(Ed.getText().getBytes("ISO-8859-1"),"UTF-8") but without success.
How are you transferring the characters between the applet and the chat server - are you explicitly using the same encoding everywhere, or do you have any code that uses the platform default encoding (which might be different on each applet client)?
Ping & DNS - updated with new look and Ping home screen widget
Joined: Jan 11, 2005
Would you mind if I send you my Java code? It would be probably easier for you to tell what's wrong with the code than copy/pasting just some portions of code?
In case of yes, which address could I send the code?
Joined: Mar 22, 2005
Would you mind if I send you my Java code?
Actually, I would. We have the forums so that everyone can benefit and respond. Feel free to post a minimal excerpt of the code that exhibits the problem, and we can all take a look at it.