Forums Register Login
Chinese Character problem
I am using a JSP calls an applet by Javascript. Then the applet returns to the JSP also by Javascript. My problem is that when the applet returns to the JSP, there is Chinese characters in the URL. The Chinese characters cannot be shown correctly in the web page. However, the Chinese characters can be shown correctly in the JOptionPane. The charset defined in the JSP is GBK. Pls. see the following code in the applet to return to JSP.
import netscape.javascript.*;
try {
JSObject.getWindow(this).call(functionName, &name=ChineseCharacters);
} catch (Exception e) {
functionName is a Javascript function name. The &name=ChineseCharacters is the parameter passed into the Javascript function to reload the web page with &name=ChineseCharacters .
If you try to please everybody, your progress is limited by the noisiest fool. And this tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter

This thread has been viewed 581 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 21, 2018 16:12:41.