GNOME Bugzilla – Bug 58737
Galeon incorrectly displays 8-bit characters
Last modified: 2004-12-22 21:47:04 UTC
Package: galeon Severity: normal Version: 0.12pre1 Synopsis: Galeon incorrectly displays 8-bit characters Bugzilla-Product: galeon Bugzilla-Component: Bookmarks Description: All strings in bookmarks.xml file are stored using UTF-8 and these strings are not converted to locale dependent encoding when displaying using GTK+ functions. I suggest using GAL functions for coversion. ------- Bug moved to this database by unknown@bugzilla.gnome.org 2001-08-08 12:10 ------- Reassigning to the default owner of the component, ric@users.sourceforge.net.
no need to use gal realy, we have some facilities of our own
I have 8 bit chars (iso8859-1) in my bookmarks and they seem to be correctly saved/loaded... I'll have to look at the code to see what is exactly happening. Could you attach a bookmark file that shows the problem (and specify your locale)
Created attachment 885 [details] My ~/.galeon/bookmarks.xml file
My locale is pl (Polish), encoding: iso-8859-2. Attached my bookmarks.xml file.
I've been testing this a bit. When using LC_ALL=pl_PL I get: Gdk-WARNING **: Missing charsets in FontSet creation Gdk-WARNING **: ISO8859-2 Gdk-WARNING **: ISO8859-2 This is probably due to a misconfiguration on my system (do you get this warnings?). The code looks correct, but it does not work (I think, I don't speak polish). Does this happen to you only with bookmarks or also with the history (page titles with iso8859-2 chars)? I don't know a lot about i18n :-(
No, I don't get any warnings on terminal, but I already know what the real problem is. It's a bug in the netscape bookmark importer. Netscape stores bookmarks using locale dependent encoding (iso-8859-2 in my case) and mozilla uses UTF-8 (I'm not sure if it's always UTF-8). My bookbarks got mangled while importing from mozilla. Of course, the problem wouldn't exist if you used libxml instead of making your own html/xml (pseudo)parser.
*** This bug has been marked as a duplicate of 58785 ***