My whole app is serving stuff in utf-8, only one page (xml) should return a ISO-8859-1 page
<?xml version="1.0" encoding="ISO-8859-1"?>
Now, how can I change the header attribute in order to have the ISO-8859-1 served.
The result of
wget --save-headers http://79.125.52.185/kdb/jobs/jobs_ch
is
HTTP/1.0 200 OK
...
Content-Length: 34899
Status: 200 OK
Content-Type: application/xml; charset=utf-8
...
<?xml version="1.0" encoding="ISO-8859-1"?>
<JOBS>
<INSERATE>
<INSERAT>
<ORGANISATIONID>10</ORGANISATIONID>
<INSERATID>1532</INSERATID>
<VORSPANN>Gemeinsam mit Ihrem Team sorgen Sie für Kundenservice
where
für
should be
für
and the
Content-Type: application/xml; charset=utf-8
should be
Content-Type: application/xml; charset=iso-8859-1
Current Source
controller
def jobs_ch
@jobs = ...
render :action => 'jobs_ch', :layout => 'empty'
end
view
xml.instruct! :xml, :version=>"1.0" , :encoding => "ISO-8859-1"
xml.JOBS{
...