Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes JSP and the fly likes problem of internationalism in struts framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "problem of internationalism in struts framework" Watch "problem of internationalism in struts framework" New topic
Author

problem of internationalism in struts framework

Stephen Lee
Ranch Hand

Joined: Dec 11, 2001
Posts: 74
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
Michael OBrien
Greenhorn

Joined: Apr 25, 2002
Posts: 19
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 agree. Here's the link: http://aspose.com/file-tools
 
subject: problem of internationalism in struts framework