Charset on request :update

Hello again!

I have a controller that does a request :update and send the result from
a render :partial to the client.

The problem is that the char set is not interpreted ok.

I have in my app controller
def set_charset
if request.xhr?
@headers[“Content-Type”] = “text/javascript; charset=iso-8859-1”
else
@headers[“Content-Type”] = “text/html; charset=iso-8859-1”
end
end

Bu it seems that the ones that are result of a page.replace_html don’t
get treated the same way

Thanks