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ä
[EMAIL PROTECTED]
Phone: +358 9 4355 8691
HiQ Softplan Oy, http://www.hiq.fi/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to