Error: Failed to display HTML document in ISO-8859-1 encoding

John Ralls jralls at ceridwen.fremont.ca.us
Mon Dec 4 12:54:42 PST 2006


On Dec 4, 2006, at 8:44 AM, Julian Smart wrote:

> Hi Richard,
>
> Thanks for the info - but I still think you're compiling in ANSI  
> (somehow) because I truly don't believe the offending wxLogError  
> call can be invoked in Unicode builds. The evidence for this is  
> very plain from the wxWidgets source.
>
> If you are doing wxWidgets development, then you should be using  
> debug builds for your development, and using a debugger. Otherwise  
> comments from wx-users are of limited value if you can't step  
> through wxWidgets (and your own) code. It's very easy to build a  
> debug version of wxWidgets, and to test a sample, using configure,  
> e.g.
>
> # wx is your wxWidgets source hierarchy
> cd wx
> mkdir build
> cd build
> ../configure --enable-debug --with-gtk --enable-unicode
> cd samples/htlbox
> make
> ./htlbox
>
> Thanks,
>
> Julian

I think I've found at least some of the source of the confusion:

First of all, I was able to replicate the problem on Debian Sarge  
using the compiled HTML Demo sample from the wxWidgets webpage, so I  
tried to debug it. When I found that I couldn't set the breakpoint  
you requested earlier, I took a look at the shared libraries and  
found that that version is statically linked to libwx* (and without  
debugging symbols), meaning that what it does has nothing at all to  
do with how I (or Richard) built wxWidgets.

So I went looking for it in my (CVS) source tree, and found it in  
samples/html/test/. That version (which is a Unicode debug build)  
doesn't display the error box. I had last updated in May, so I  
updated today, rebuilt, and retested. Same result.

Regards,
John Ralls





More information about the wx-users mailing list