Outcome of problem with UTF-8 vs ISO-8859-1

"Adam Greene" <[email protected]>
Newsgroups gmane.comp.java.tapestry.devel
Message-ID <[email protected]>
I have managed to figure out how to do UTF-8 for everyting except input
boxes.  The problem is in this:

I input "étre" into a text field, if I use JavaScript to display the value
of the field, it says "étre".  But when it arrives at the server, it is
converted to UTF-8, which ends up converting the é into a two byte
character, but not the right ones (it is actually a ISO-8859-1 conversion,
not a UTF-8.  You can see the same effect by switching Eclipse into
ISO-8859-1 mode, create an HTML, put in an é, save it and reload it, you
great screwed up text.  Switch into UTF-8 mode, delete the garbage and
re-insert the é, save, reload, everything fine).

What I'm wondering is:  Does anyone know how to get the result of input
fields in UTF-8, encoded properly.  I can switch the charset of the page to
ISO-8859-1 and have it return proper values, but then the dynamic data will
not display properly on the UTF-8 pages (which is the mode I need to edit
them in inorder to use Eclipse).




-------------------------------------------------------
This SF.NET email is sponsored by:  The Best Geek Holiday Gifts!
Time is running out!  Thinkgeek.com has the coolest gifts for
your favorite geek.   Let your fingers do the typing.   Visit Now.
T H I N K G E E K . C O M        http://www.thinkgeek.com/sf/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.