Error: Failed to display HTML document in ISO-8859-1 encoding
Richard Hainsworth
richard at rusrating.ru
Sun Dec 3 03:09:38 PST 2006
a) the problem came when I ran the wx demos from the web site and ran them.
b) the problem also came when I tried to use a wxHtmlListBox with quite
innocuous Ascii characters (viz. no Cyrillics). But when I tried
Cyrillics they displayed correctly.
c) wxHtmlListBox has to be subclassed and the function
wxHtmlListBox::OnGetItem has to be implemented. Here is the text from
the online manuals:
wxHtmlListBox::OnGetItem
*wxString* *OnGetItem*(*size_t */n/) *const*
This method must be implemented in the derived class and should return
the body (i.e. without <html> nor <body> tags) of the HTML fragment for
the given item.
Note that without <html><body> and hence no <head> tags, there is no way
to provide <meta> information to the renderer.
Since nothing is non-standard, why is there an error? And how can the
configuration be changed?
Richard
Vaclav Slavik wrote:
> Richard Hainsworth wrote:
>
>> I get this error everywhere I try to use wxHtml. I cant find how to
>> turn the error off or to change the default encoding.
>>
>
> Using <meta> elements.
>
>
>> The problem came up when trying to use wxHtmlListBox and I want to
>> use Cyrillic characters. First I get the warning, but the rendering
>> is correct. In other words, I get a completely useless warning that
>>
>
> The warning is not useless, but tells you about an actual problem --
> which is more likely that not your fault. You don't bother to provide
> any details about what HTML code exactly fails, so it's impossible to
> tell you what's wrong with it with certainty, but my guess is that
> you simply didn't declare charset information in your HTML's metadata
> tags -- in which case iso-8859-1 is used for consistency with HTTP
> standard.
>
> Regards,
> Vaclav
>
>
More information about the wx-users
mailing list