On Wed, 2008-08-20 at 08:28 -0700, siegfried wrote:
> Silly me! I should have anticipated the need to go back again! Can anyone
> give me a little script to search for XML entities and convert them to my
> choice of utf-8, utf-16 or utf-32?

The same thing only backward:

  s/\&\#(\d+)\;/chr($1)/ge;  # convert XML entity to UTF-8


-- 
Just my 0.00000002 million dollars worth,
  Shawn

"Where there's duct tape, there's hope."
        Cross Time Cafe

"Perl is the duct tape of the Internet."
        Hassan Schroeder, Sun's first webmaster


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to