Hi all
 
I am new to Tapestry, I am from Taiwan and interested in Tapestry framework.
After reading the Developer's Guide and Hangman example , I started writing
a simple tapestry application , but found some encoding problem with my locale
(Chinese Big5 encoding).
 
The steps are as follows :
 
In Home.html , I added the following line after <title>:
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
 
and wrote some Chinese big5 strings in the page (Home.html)
I then added a jwcid : <span jwcid="testInsert"/>
 
In Home.jwc , the specification class="test.Home"
<component id="testInsert" type="Insert">
  <binding name="value" property-path="test"/>
</component>
 
In test.Home.java , there is a method :
public String getTest()
{
  return "XXXXXX";  // This is Chinese Big5 Words
}
 
Runtime environment :
Linux + Resin 2.1.2
environment : LANG=zh_TW
 
When I use Internet Explorer to view the servlet ,
the getTest() works fine , "XXXXXX" (Chinese big5 string) is correctly shown.
 
But , the Chinese words in Home.html all become bad words....why ?
 
When I 'view source code' in Internet Explorer , all words are encoded in 'Unicode' , not Big5.
Can I change the encoding to 'Big5' ?
(Because if the source code is unicode-encoded , it is hard to debug....)
 
 
Thank you very much....
 

Reply via email to