Mon application entière sert des choses en utf-8, une seule page (xml) doit retourner une page ISO-8859-1Modifier l'attribut charset dans l'en-tête html
<?xml version="1.0" encoding="ISO-8859-1"?>
Maintenant, comment puis-je changer l'attribut d'en-tête afin d'avoir l'ISO-8859-1 servi.
Le résultat de
wget --save-headers http://79.125.52.185/kdb/jobs/jobs_ch
est
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
où
für
devrait être
für
et le
Content-Type: application/xml; charset=utf-8
devrait être
Content-Type: application/xml; charset=iso-8859-1
Source actuelle
contrôleur
def jobs_ch
@jobs = ...
render :action => 'jobs_ch', :layout => 'empty'
end
vue
xml.instruct! :xml, :version=>"1.0" , :encoding => "ISO-8859-1"
xml.JOBS{
...
ne savez-vous sur: layout => false, BTW? –