Hi Detlef,

Tapestry automatically encodes as entities all special (disallowed) HTML characters, such as '<', '>', etc, as well as all characters with unicode codes above 127. Those include umlauts, cyrillic, Chinese chars, etc. The characters above 127 are encoded using '&#xxx;'.

This is what it seems you need, if I understand correctly. If you want to use unicode (utf-8), which would allow you to show all types of languages on the same page, there is some more info at this page:

http://tapestry.sourceforge.net/wiki/index.php/EnablingUnicode

If you are still having problems, please check whether your text files and templates are encoded to show the unicode symbols, rather than some other charset. You might need to use 'native2ascii' -- see the tool documentation in the JDK for more info.

I hope this helps.

-mb

 detlef schulze <[EMAIL PROTECTED]> wrote:

Hi,

the java.net.URLEncoder does the encoding of urls (MIME:
x-www-form-urlencoded) to preserve the parameters in URLs, it does not
encode special characters to their corresponding HTML Entities, which is
something quite different.

cheers,
detlef

---- Original Message -----
From: "Malcolm Edgar" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Sunday, November 17, 2002 9:29 PM
Subject: Re: [Tapestry-developer] Handling of special characters (german
umlaut etc.)


> Hi detlef,
>
> There is the java.net.URLEncoder class for character encoding, see the
> encode() method. I dont know about german umlaut, but the Java 1.4 version
> of this class include a Locale parameter to this method.
>
> Hope this helps.
>
> regards Malcolm
>
> >From: "detlef schulze" <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: [Tapestry-developer] Handling of special characters (german
umlaut
> >etc.)
> >Date: Sun, 17 Nov 2002 17:11:46 +0100
> >
> >Hi all,
> >
> >I just wonder if tapestry has any facility to handle the transformation
of
> >for example german umlauts or characters like ">" to their HTML Entities
> >like � or > respectively.




-------------------------------------------------------
This sf.net email is sponsored by: To learn the basics of securing
your web site with SSL, click here to get a FREE TRIAL of a Thawte
Server Certificate: http://www.gothawte.com/rd524.html
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer



Do you Yahoo!?
Yahoo! Web Hosting - Let the expert host your site

Reply via email to