问题 My program receives UTF-8 encoded strings from a data source. I need to tamper with these strings, then output them as part of an XML structure. When I serialize my XML document, it will be double encoded and thus broken. When I serialize only the root element, it will be fine, but of course lacking the header. Here's a piece of code trying to visualize the problem: use strict; use diagnostics; use feature 'unicode_strings'; use utf8; use v5.14; use encoding::warnings; binmode(STDOUT, "