shlomif / perl-XML-LibXML

The XML-LibXML CPAN Distribution for Processing XML using the libxml2 library
https://metacpan.org/release/XML-LibXML
Other
17 stars 35 forks source link

XML::LibXML::Error - use UTF-8 encoding for output #60

Closed Grinnz closed 3 years ago

Grinnz commented 3 years ago

The UTF-8 encoding will (by default) encode replacement characters for noncharacters, surrogates, and codepoints outside the Unicode range, whereas the 'utf8' encoding will blindly encode to Perl's internal approximation of UTF-8 that has no such restrictions.

Also, remove the explicit specification of FB_DEFAULT, since specifying it will remove the implicit LEAVE_SRC option causing $self->{context} to get modified in place.

shlomif commented 3 years ago

merged, thanks!