RE: decoded_content and page with content-type application/xhtml+xml; charset=utf-8
Jesper Jørgen Persson <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
Sorry for the noise! I was not using the latest version of libwww. After upgrading the decoded_content works perfectly on the page. Thanks Gisle. Best RegardsJesper Persson > Date: Tue, 15 Sep 2009 17:08:49 +0200 > Subject: Re: decoded_content and page with content-type application/xhtml+xml; charset=utf-8 > From: [email protected] > To: [email protected] > CC: [email protected] > > On Tue, Sep 15, 2009 at 10:06, Jesper Jørgen Persson > wrote: >> >> message->decoded_content doesn't decode this page: >> http://www.silkeborgbibliotekerne.dk/om+bibliotekerne/kontakt/sp%c3%b8rg+bibliotekaren >> >> because the content-type is: application/xhtml+xmland decoded_content expects the content-type to start with "text" >> from message.pm: if ($ct && $ct =~ m,^text/,,) { > > What version of LWP is this? The code does not look like that any more. > >> according to this page: http://www.w3.org/TR/xhtml-media-types/#application-xhtml-xmlthe content-type should be correct. >> What should I do ? Manually do something like: $content_ref = \Encode::decode($charset, $$content_ref); > > My guess is that upgrading LWP will help. > > --Gisle _________________________________________________________________ More than messages–check out the rest of the Windows Live™. http://www.microsoft.com/windows/windowslive/