Re: bookmark conversion problem

Marco Pesenti Gritti <[email protected]>
Newsgroups gmane.comp.web.galeon.devel
Message-ID <1035500791.1129.0.camel@balurdi>
On Thu, 2002-10-24 at 18:19, KUSANO Takayuki wrote:
> When Galeon HEAD starts up and detect an old bookmark file saved by
> Galeon 1, it can convert it to new format file (if user desired).
> 
> I try to convert Galeon 1 bookmark file (XBEL format) by this feature,
> but all entries in bookmark become corrupted.
> 
> I modifed gb_bookmark_set_fix_galeon1_mess_string() in
> bookmarks/bookmarks.c to address this problem.
> 
> When Galeon 1 save bookmark items to file, it passes UTF-8 encoded
> string to libxml1 APIs. libxml1 treats UTF-8 encoded strings as if
> they are encoded in ISO Latin-1, and split string every bytes and
> convert them to numerical entity references.
> 
> So, we can convert Galeon 1 bookmark to correct UTF-8 encoded file
> by perl like this.
>   perl -pe 's/&#(\d+);/pack("C",$1)/ge' < bookmarks.xbel > new-bookmarks.xbel
> 
> I tested attached patch by my bookmark file which contains Japanese
> strings, but I'm not sure this is the right way to do.
> 
> Regards,
> 
>   KUSANO Takayuki <URL:http://www.asahi-net.or.jp/~AE5T-KSN/>
> 

Can you put this in bugzilla so we dont forget it ?
Thanks

Marco




-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0003en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.