title: How do I get Nokogiri to add the right XML encoding?
body: <p>I have created a xml doc with Nokogiri: <code>Nokogiri::XML::Document</code></p>
  
  <p>The header of my file is <code>&lt;?xml version="1.0"?&gt;</code> but I'd expect to have <code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code>. Is there any options I could use so the encoding appears ?</p>