Problems with accounts in gnucash/accounts

Didier Vidal didier-devel at 9online.fr
Thu Oct 20 16:52:05 EDT 2005


The accounts used by the gnucash druid are broken in many locales,
including fr_FR, fr_FR.UTF-8, de_DE.UTF-8, de_DE...

The problem is that gnucash expects them to be in UTF-8.
On locale with ISO-8859-1 charset, if you run the following script, the
druid works again:
for i in *-xea
do 
mv $i $i.iso 
cat $i.iso | iconv  -f ISO-8859-1 -t UTF-8 > $i
done

However, I'm not sure it's a good idea, since the files will not respect
the locale indicated by their directories.

The problem lies more in the way these files are read. It's probably not
by libxml2. Otherwise:
  libxml2 would certainly have handled the conversion correctly
  I also tried to specify the codeset in the XML header, but that didnt
fix the problem.

How should we handle this ?

Didier.




More information about the gnucash-devel mailing list