On 5/7/02 10:58 AM, Paul Lindner wrote:
> The output from your example looks like UTF-8 data (Ã is a
> commonly seen UTF-8 escape sequence). XML::Parser converts all
> incoming text into UTF-8. You will need to convert it back to
> iso-8859-1.
>
> My favorite is Text::Iconv
>
> use Text::Iconv;
> $utf8tolatin1 = Text::Iconv->new("UTF-8", "ISO8859-1");
>
> my $buffer_latin1 = $converter->convert($buffer);
So HTML::Entities only works with ISO8859-1 (or ASCII, presumably)? What if
I have actual UTF-8 data? Won't conversion to ISO8859-1 in service of
HTML::Entities result in data loss?
-John