in reply to Hexadecimal Entity Problem in XML::Twig
That replaces every non-ASCII character with its hex-unicode entity notation. See "perldoc perlre" about the "\p" and "\P" constructs and character classes.$output =~ s/(\P{IsASCII})/sprintf("&#%4x;",$1)/g;
|
|---|