Re: decoded_content and page with content-type application/xhtml+xml; charset=utf-8
Gisle Aas <[email protected]>
| Newsgroups | gmane.comp.lang.perl.modules.lwp |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Sep 15, 2009 at 10:06, Jesper Jørgen Persson <[email protected]> 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