Hi,

I started with a large test page, but have been able to reduce it to the
following:

<html>hi1<meta http-equiv="content-type" content="text/html;
charset=utf-8">hi2</html>

When I navigate to this page with nsIWebNavigation.LoadURI(...) it works
fine.  However when I try to set it as the browser's content directly using
its nsIWebBrowserStream, once the full "meta" tag has been appended, all
subsequent AppendToStream calls fail with an NS_ERROR_UNEXPECTED error as if
the stream has been closed on me.  Removing the "meta" tag's ";
charset=utf-8" portion makes the subsequent nsIWebBrowserStream.Append(...)
calls work fine, which gives the impression that the utf-8 charset is not
supported (?).

I'm using xulrunner-1.8.1.3, and have only seen this behaviour on win2000,
it works as expected for me on Linux and OSX.  However this behaviour was
originally reported on Linux, so it may be setup-related.  Can anyone tell
me what to do to ensure that setting a page's content to something like this
will not fail, or if this failure is expected, how to handle it so that the
full page does not appear blank?

Thank-you in advance,
Grant


_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to