HTTP::Response decoded_content is undefined



Hi

I had a script that was able to parse the decoded_content for the
forms in a html page. However, a recent update to the page broke the
script ( @forms = HTML::Form->parse($response->decoded_content,
$response->base);) was unable to find the forms in the web page.
After much research I found that the decoded_content was empty but the
call to parse seemed happy with HTML::Form->parse($response->content,
$response->base); instead.

It looks like the issue may have been caused by the addition of a meta
tag to the html page:

<meta http-equiv="Content-Type" content="text/html;charset=utf-8">

so far, I have been unable to prove that as the page is generated via
compiled javascript and is painful to change.

Any idea whether this meta tag would cause an issue with
decoded_content and whether there might be a work around...

Tim

.



Relevant Pages

  • Re: HTTP::Response decoded_content is undefined
    ... forms in a html page. ... a recent update to the page broke the ... Any idea whether this meta tag would cause an issue with ... to make the charset detection part more sophisticated. ...
    (comp.lang.perl.modules)
  • Re: Problem applying HTML 4.01 DOM in scripting
    ... because you are referring HTML 4.01, ... Thanks for noticing that. ... It is also HARMLESS as ... I don't know where I got this and the next Meta tag. ...
    (comp.lang.javascript)
  • Re: requestEncoding = "ISO-8859-1"
    ... I placed the META tag in the .html page, not the .aspx page, and this ... UTF-8 into the meta tag of every form our staff creates? ... browser assumes ISO-8859-1 by default (check your browser's encoding ... HTML 4.01 even includes an attribute to specify the character encoding ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: why is a particular div being centered?
    ... I tried, incidentally, using a meta tag to set the Content-Type to ... It uses whatever MIME type you have set for .html on ... through a local web server with the proper configuration. ...
    (comp.infosystems.www.authoring.stylesheets)
  • Re: requestEncoding = "ISO-8859-1"
    ... I placed the META tag in the HTML form file. ... Sorry - how does one encode them physicially using UTF-8 ... I need to pick an encoding that is capable of representing the character 'ö' like UTF-8 or ISO-8859-1. ... But of course one thing always remains true: You must not declare in your HTML page's META tag an encoding that's different from the one you used to save the file. ...
    (microsoft.public.dotnet.framework.aspnet)