XML encoding

Hello,

I generate a .xml using the function to_xml

      format.xml  { render :xml => @pisos.to_xml(:methods =>

[:provincia_nombre, :ayuntamiento_nombre]) }

And the xml is encoded with UTF-8, I would like to know how to encode
the xml with ISO 8859-1 or another one.

Thank you

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs