in reply to WWW::Mech / Unicode issue ?

Odd. Uncommenting those two lines doesn't seem to change anything when I try it.

For what it is worth, & nbsp; is a non-breaking space which in both Latin-1 and Unicode at ordinal 160 or \xA0. (Space added so entity wouldn't be rendered as the actual character)

To convert the non-breaking spaces to regular spaces, do a substitution:

$result =~ s/ / /g;