Title: RE: [Tapestry-developer] The World is on fire and all I have is a buck of gas

Hi -

I talked to our i18n expert here.  Our suggestion is to go with UTF-8. 
Here are here comments.

   if it is just for displaying, we did this:

     response.setContentType("text/plain; charset=UTF-8");

   this line needs to be before any call to get the writer from the response.
   We did it in the doService() function in our servlet class.

   for display you should use probably the escaped way for characters.
   for example: "\u30d7\u30e9\u30a4\u30d0\u30b7  \u30fc\u306b\u3064\u3044\u3066" - this is some japanese.

   If you also need to get parameters input from the user, then you need to set the servlet to know
   to encode to UTF-8.

   You can take a look at this site http://tagunov.tripod.com/i18n/i18n.html.
   He explains what the problems are and how to solve them. not in tapestry though,
   just the general servlets and jsp.

Hope that helps put out a few flames.

Dorothy

-----Original Message-----
From: Adam Greene [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 18, 2002 12:30 PM
To: [EMAIL PROTECTED]
Subject: [Tapestry-developer] The World is on fire and all I have is a
buck of gas


Has anyone else run into the problem of trying to deal with UTF-8 vs
ISO8859-1 and trying to get multi-lingual characters to print.  I have two
page with � characters in them, one page displays fine under UTF-8 and the
other only works under ISO8859-1 (switched via META TAGs).  No matter what I
do, I cannot both pages displaying correctly at the same time.  I either got
block characters or é instead of the �.

Please, if anyone has any idea, let me know, I'm pulling out my hair!!  I've
tried everything I know (including looking at the Workbench source code for
i10n).




-------------------------------------------------------
This SF.NET email is sponsored by: Order your Holiday Geek Presents Now!
Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap,
MP3 Players,  XBox Games,  Flying Saucers,  WebCams,  Smart Putty.
T H I N K G E E K . C O M       http://www.thinkgeek.com/sf/
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to