Hi.

There seems to be a problem with character encoding in (at least) the Polish Wikipedia database. At first I thought it was the problem with my script but phpMyAdmin and even shell mysql also shows weird characters.

See for example:
SELECT page_title FROM page WHERE page_id = 2117937

Or a lot more here:
http://toolserver.org/~eccenux/dna/index.php?D=2010-10-10

Regards,
Nux.