You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Denis Ponomarev <oz...@romsat.ua> on 2003/05/30 09:53:42 UTC

Re[3]: Non-latin charset in JavaScript messages

Nice hack! :)
It works for me, but I think this is not appropriate approach for
i18n applications and Tapestry developers should something change in
javascript rendering.

Thank You!

DP>> Can anybody help?

DP>>> Page rendered in utf-8, but embeded javascript does not.
DP>>> So non-latin literals in javascript leads to errors.
DP>>> How can I fix it?

RBV> Try this

RBV> public class Win1251Pages extends BasePage
RBV> {
RBV>         public IMarkupWriter getResponseWriter(OutputStream out)
RBV>         {
RBV>                 return new HTMLWriter("text/html; charset=windows-1251", out);
RBV>         }
RBV> }


Re[4]: Non-latin charset in JavaScript messages

Posted by "Roman \"Blade\" Velichko" <bl...@ivc.tagmet.ru>.
Hi to All!

DP> Nice hack! :)
DP> It works for me, but I think this is not appropriate approach for
DP> i18n applications and Tapestry developers should something change in
DP> javascript rendering.

May be it's a hack :-) but in own organization we have to use only
one language. Another trick for your subject is try to use
page-localization see documentations & vlib exam application...

========
With best wishes
Roman "Blade" Velichko [mailto:blade@ivc.tagmet.ru]