http://www.perlmonks.org?node_id=879183


in reply to accessing XML-declarations

Why do you need to generate a response using the same encoding? Given that every XML parser is required to understand UTF-8 encoding why not just use that?