Please help: Writing Chinese from Java 1.1 Applet to Server.
My applet has a chinese string such that:
String text = "\u5B57";
I am trying to get the Applet to post the Chinese String. By the time the String reaches the server it is already "?" - so I gather the encoding problem is occuring on the client (the applet). How do I ensure that this works ok?
My Source code:
DataOutputStream output = new DataOutputStream(connection.getOutputStream() );
// simulate a POST from a web form
String query = "id=" + ID;
query += "&";
query += "outtext=" + URLEncoder.encode(text);
// write out the data
int queryLength = query.length();
output.writeBytes( query );
output.close();
Thanks.
Best Regards,
Carlos

