tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ray <fortyco...@gmail.com>
Subject Re: [T5] 5.0.16 Spanish special characters
Date Thu, 04 Dec 2008 09:08:58 GMT
I've put in logging on the java page when bringing back the message, and its
coming out incorrectly with ? instead of the special characters, so its
nothing to do with the html I believe.

I've since learned that the fact that im using Windows may also be having an
effect as it may be saving the file in a format that is unexpected by
Tapestry, but im only hedging a guess there really.

Thanks for the feedback so far, its been great.




On Thu, Dec 4, 2008 at 1:44 AM, dh ning <ningdhcn@gmail.com> wrote:

> That's true, native2ascii is unnecessarily any more.
> Try to locate the issue whether it is caused at server side or by html page
> encoding.
> What's that value in tapestry page.java level? If it is correct, then this
> should be the html encoding problem.
> 2008/12/4 Thiago H. de Paula Figueiredo <thiagohp@gmail.com>
>
> > Em Wed, 03 Dec 2008 14:58:39 -0300, Imants Firsts <imantsf@inbox.lv>
> > escreveu:
> >
> > Hi Ray!
> >>
> >> The properties files should be in ascii encoding and the unicode
> >> characters should be escaped with \u, for example "\u0161" for &scaron;
> >> character. JDK comes with native2ascii tool that does the conversion.
> >>
> >
> > That's not correct anymore. Since some Tapestry version I don't recall,
> the
> > property files need to be UTF-8 encoded, so no conversion needs to be
> done.
> >
> > From http://tapestry.apache.org/tapestry5/guide/localization.html:
> >
> > "Properties File Charset
> >
> > Tapestry uses the UTF-8 charset when reading the properties files in a
> > message catalog. This means that you don't have to use the Java
> native2ascii
> > tool."
> >
> >
> > --
> > Thiago H. de Paula Figueiredo
> > Independent Java consultant, developer, and instructor
> > Consultor, desenvolvedor e instrutor em Java
> > http://www.arsmachina.com.br/thiago
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message