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]> |
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/,,) {
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);
Best RegardsJesper Persson
_________________________________________________________________
Share your memories online with anyone you want.
http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1