corpx has asked for the wisdom of the Perl Monks concerning the following question:

Content-Type: text/html; charset=ISO-8859-1 Fatal Error in C:/strawberry/perl/site/lib/HTTP/Message.pm at Thu Jul +16 16:49:33 2009 while responding to request from Bad file descriptor utf8 "\x94" does not map to Unicode at C:/strawberry/perl/lib/Encode.p +m line 162.
I get that error when I try to grab a url in my windows box. On my ubuntu box, I get
Content-Type: text/html; charset=ISO-8859-1 Fatal Error in /usr/local/share/perl/5.10.0/HTTP/Message.pm at Thu Jul + 16 16:22:37 2009 while responding to request from utf8 "\x94" does not map to Unicode at /usr/lib/perl/5.10/Encode.pm li +ne 162.
However, when I upload the code to my web host (debian box), it runs fine. What am I doing wrong on my local boxes?

Replies are listed 'Best First'.
Re: utf8 does not map to Unicode error when trying to grab a page
by moritz (Cardinal) on Jul 16, 2009 at 22:51 UTC
    Maybe your locales are different on the two machines? I sometimes found that perl behaves oddly in non-UTF8 locales, though I don't know exactly what's different.

    Of course there are other possibilities, like a bug in one of the modules in one of the setups, but you don't tell us enough about your environment to warrant a guess.