Sorry , I've found the problem ...
The problem originates from Spindle 1.0.3
The Spindle HTML Editor will save the HTML content in 'UTF8' encoding ,
neglect locale encoding...

If I edit the HTML with dreamweaver or any other text editor , all Chinese
words are correctly shown
(But when I view the generated html source code , it is still
unicode-encoded. I'll have to dig it deeper)...

I've reported this problem to the Spindle bug-list...




> This is someting I've been meaning to check into; I need
> to do a little more to get the correct character
> encoding into the HTTP headers; the localization that
> Tapestry does today really only works for the latin
> alphabets properly.

> >
> > 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....
> >
>




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to