I am getting an encoding problem when trying to write an xml file out
after it generated by a StringTemplater
(http://github.com/starapor/slippers/tree/). I am using the templater to
generate an xml file from within Cucumber. The template looks fine and
produces xml correctly but when you use the string from the
engine.render(Slippers::BindingWrapper.new(binding)).to_str method and
pass it to a new rexml\document or File.new the generated file is
unreadable.

I have included the problem file on gist, link below and the example is
called encoding_problem.rb.

git clone git://gist.github.com/546222.git gist-546222
-- 
Posted via http://www.ruby-forum.com/.