• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Tim Cooke
  • Devaka Cooray
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
Bartenders:
  • Carey Brown
  • Roland Mueller

problem of internationalism in struts framework

 
Ranch Hand
Posts: 74
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am now using struts framework. In the ApplicationResources_zh.properties, there is word in BIG5 encoding (chinese). In the jsp, there is <%@ page contentType="text/html; charset=BIG5" %>.
However, when I browse the page in browser, the Chinese words appears in symbols only.
If my jsp file does not have the line <%@ page contentType="text/html; charset=BIG5" %>, the Chinese words appears in symbols also (because the encoding is English). But when I change the encoding of the browser to BIG5, I can see the Chinese words. Why?
Stephen Lee
 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Stephen,
Depending on the browser, you must set the encoding manually so the browser can select the proper character set for display.
*SOME* browsers don't interpret charset names automatically very will.
Out of curiosity, if you view the html source in your browser, does a tag exist that shows the charset equal to BIG5?
 
I'm THIS CLOSE to ruling the world! Right after reading this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic