i believe a similar question was just asked on the Struts-User mailing
list.  here was the answer given:

<snip>
You need to use native2ascii (program comes with java sdk and is also an
ant method) to convert the UTF-8 (or other formats) into the java
property file format which use \uXXXX

Main point is you need to request.setEncoding("UTF-8") on every request
(well, ones that have form values being submitted).  Otherwise they will
be treated as normal ascii and be corrupted.  Also pages need the
response encoding or page encoding set to UTF-8 too.

more info:
http://www.javaworld.com/javaworld/jw-05-2004/jw-0524-i18n.html

</snip>

hth
andy

On Thu, 05 Aug 2004 18:54:00 +0200, Norbert Czeranka
<[EMAIL PROTECTED]> wrote:
> Hi,
> 
> we have some problems with the encoding of the generated links
> for page navigation.
> 
> We use UTF-8 for the response and request encoding in our applications.
> Generally it seems to work. But know in combination with Display Tag we
> get some errors, because the generated links consist of a different
> encoding.
> 
> If we call the JSP which holds a Display Tag table with the attribute:
>    city=M�nchen
> (with german Umlauts) the URL looks like:
>    ...City=M%C3%BCnchen
> but within the navigation links we found this:
>    ...City=M%FCnchen
> 
> First seems to be an URL encoded UTF-8 String, second and URL encoded
> CP-1252 String. First works, second doesn't.
> 
> Can i force Display Tag to use UTF-8?
> Any other solutions?
> 
> thank you,
> Norbert
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by OSTG. Have you noticed the changes on
> Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
> one more big change to announce. We are now OSTG- Open Source Technology
> Group. Come see the changes on the new OSTG site. www.ostg.com
> _______________________________________________
> displaytag-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/displaytag-user
>


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
displaytag-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to