Fix fr_FR accounts
Christian Stimming
stimming at tuhh.de
Fri Oct 21 03:29:03 EDT 2005
Didier,
thanks for pointing out the missing encoding in the account templates.
David Hampton schrieb:
>>You must specify the file's codeset, or libxml2 will fail to read the
>>accounts.
>> (...)
>>cat $i.iso | sed 's/<?xml version="1.0"?>/<?xml version="1.0"
>>encoding="ISO-8859-1"?>/' > $i
>> (...)
>>
>>I recommend to apply the fix to all accounts directories
Yes. Will do that next week, although I'm not too sure whether some
account templates are more recent in the 1-8-branch. But I'll take care
of this during next week.
> I believe this is the wrong approach. In g2 we should be shipping utf-8
> encoded versions of these account trees, not older iso-8859-x encodings
> that require converting upon each use.
No, I believe this is a correct approach. The wrong part here was that
we didn't specify the encoding of the file at all. This should be
changed. And once the encoding is specified, it is pretty much up to our
discretion which encoding this actually is: utf-8, iso-8859-1, whatever.
This is actually also a problem with all gnucash XML files -- as long as
we don't write
<?xml version="1.0" encoding="whatever-encoding"?> in the header, we
will be in trouble sooner or later. At every XML files that there is, we
should get used to the habit of writing the actual encoding in the
heading tag.
Christian
More information about the gnucash-patches
mailing list