utf-8 *is* unicode... Are you trying to convert a non-utf-8 document into utf-8 and retain all of the "special" quote characters, or do you just want to strip out any non-ascii characters entirely?
-- Jeremy On Wed, 2007-12-05 at 14:21 -0500, Alex Brelsfoard wrote: > Hi All, > I am currently using XML::Twig to read in some XML. > This XML's text is in utf-8. > So there are smart-quotes and such in there. > I need to unicode-ify the text. > I tried using most of the methods that are part of XML::Twig, but came up > dry. > The best I could do is convert all unsupported chars to question marks. > Without any XML::Twig conversion the smart quotes come out looking > like: “ ” or ’ > I tried doing a simple $val =~ s/’/'/gs; > But that didn't work either. > > Does anyone have any suggestions on how I can do this conversion either > manually OR with XML::Twig methods? _______________________________________________ Boston-pm mailing list Boston-pm@mail.pm.org http://mail.pm.org/mailman/listinfo/boston-pm