You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Syrjälä Juha <ju...@hiq.fi> on 2008/10/01 11:35:05 UTC
Changing character encoding for a single page in Tapestry 4.0.2
Hello,
I am using Tapestry 4.0.2 where encoding for every page is currently utf-8. That is server returns this http header with its response:
Content-type: text/html;charset=UTF-8
Now, I need to change this encoding for a single page to ISO-8859-1 while keeping the rest of the application in utf-8. How to do that?
Based on google searching I have tried following:
@Meta(value = {"tapestry.response-encoding=ISO-8859-1", "tapestry.response-content-type=text/html"})
abstract class MyPage extends BasePage {
}
abstract class MyPage extends BasePage {
@Override
protected String getOutputEncoding() {
return "ISO-8859-1";
}
}
But neither setting those values with @Meta annotation or overriding getOutputEncoding method works.
--
Juha Syrjälä
Juha.Syrjala@hiq.fi
Phone: +358 9 4355 8691
HiQ Softplan Oy, http://www.hiq.fi/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org