Re: libwww-perl-5.810 (HTTP::Message content not bytes)

Bjoern Hoehrmann <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.lwp
Message-ID <[email protected]>
* Shaun wrote:
>"Don't allow HTTP::Message content to be set to Unicode strings."
>
>I'm going to assume this change above is whats breaking my scripts.  My
>script is using NicToolServerAPI.pm which in turn uses LWP::UserAgent.  The
>script dies out with the error above when I run it.  I'm not sure what has
>to be done, my guess is that the script is POST'ing the URL in plain text
>and it needs to be in some other format.  I've snipped out a few pieces of
>code in hopes that somebody here might be able to give me a quick fix.

Presumably you have to clear the string you are passing in of the UTF-8
flag, e.g. by using Encode::encode or perhaps Encode::_utf8_off.
-- 
Björn Höhrmann · mailto:[email protected] · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.