HTML-Parser: storing into a DB words with special chars

HTML-Parser: storing into a DB words with special chars

am 21.09.2005 11:40:28 von tarmstrong

Hi.

Using Perl v5.8.5 + HTML-Parser v3.45 + MySQL v4.1.9 on Linux FC2.

I'm trying to parse a UTF-8 document ( encoding=3D"UTF-8"?>),
and store it into a MySQL database (Collation: utf8_bin).

The document contains special characters ('m=FAsica espa=F1ola' for
instance), and
after storing it into de DB, I get this word: "música española"

I tried with:
----
utf8::decode($document);
my $p =3D HTML::TokeParser->new( \$document );
----

But it doesn't work. How can I store words with special characters?
Regards.