On Tue, Sep 15, 2009 at 10:06, Jesper Jørgen Persson <jjpe...@hotmail.com> 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