"be consistent" | |
PerlMonks |
Re: Re: Re: Re: Re: XML Simple Charset Q?by John M. Dlugosz (Monsignor) |
on Nov 25, 2002 at 21:59 UTC ( [id://215739]=note: print w/replies, xml ) | Need Help?? |
Right (I updated my post to clarify). His regex takes single-byte characters in the range 80-ff nd recodes them as HTML escape codes. Same number, just a different way of persisting it to the output stream. Inspired by that, I showed that the same idea can convert from UTF8 by using the utf8 pragma and the extended \x escape codes in the regex, and meanwhile encode to Latin-1 by using pack.
In Section
Seekers of Perl Wisdom
|
|