in reply to Hexadecimal Entity Problem in XML::Twig

If you can live with é instead of é you can use the output_filter => "safe_hex" option when you create the twig. Otherwise you can create your own filter based on the code for the safe_hex option (basically a call to encode( ascii => $str, $FB_XMLCREF)

keep_encoding should only be used if you really want to modify as little as possible the original document.

  • Comment on Re: Hexadecimal Entity Problem in XML::Twig