• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Chinese Character problem  RSS feed

Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 .
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!