1.8 -> G2 Localization related troubles

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

1.8 -> G2 Localization related troubles

Покотиленко Костик
Hi.

Some time ago I was reporting a "Bug 310102" in 1.8. It's about not
correct display of non-English characters in reports.

I've been told that G2 port would solve this problem. Truly, in G2 I can
create accounts with Russian names and put transactions with Russian
descriptions and they appear correctly in reports.

But, when I finally got to open my 1.8 file in G2, it was a surprise.
Russian characters in accounts list, transaction list and reports
doesn't appear correctly.

I believe, the problem is in the way 1.8 saves file, but there should be
a kind of workaround to allow correction of a file during open or
import.

How I see the problem:

1. I see in Gnucash 1.8 file that non-English characters are being put
in "óÅ..." (Unicode I believe) form. This is the error entry
point.

When created and working with this file I was using KOI8-U locale.
GnuCache 1.8 doesn't consider locale when converting to Unicode. Russian
characters are from second part of KOI8-U charset, but resulting
"óÅ..." characters are from second part of iso8859-1 (Western
Europe) charset.

To conclude: GnuCache 1.8 when converting to Unicide always writes
characters as "Western Europe" not taking into account what charset the
characters are really from.

2. More details about this problem and a workaround for 1.8 reports
(which can help create import with correction of this problem) can be
found in "Bug 310102".

3. I think, that G2 should detect 1.8 files during open and propose
using of import routing which would ask user for a charset which was
used to create and work with file in 1.8, and convert characters, and
re-save file with correct Unicode characters.

--
Покотиленко Костик <[hidden email]>

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: 1.8 -> G2 Localization related troubles

Christian Stimming
Hi,

someone mentioned this problem before, but somehow the problem is not as
general as I'd think.

Some other users (including me) have been using the 1.8 datafile with
non-ascii characters without problems in gnucash-SVN, i.e. the non-ascii
characters will be displayed and stored correctly in gnucash2. The
libxml2 library seems to automatically handle this conversion correctly,
at least in some cases. (libxml2-2.6.17) Yes, the 1.8 non-ascii form of
"&#243;&#197;..." is the problem here as it makes it impossible to use
"recode koi8..utf8 myfile".

Isn't there even a bugreport about this particular file conversion
problem in bugzilla? If there isn't, please enter one, maybe with a
short test file. http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash

Christian

Покотиленко Костик schrieb:
> But, when I finally got to open my 1.8 file in G2, it was a surprise.
> Russian characters in accounts list, transaction list and reports
> doesn't appear correctly.
>
> 1. I see in Gnucash 1.8 file that non-English characters are being put
> in "&#243;&#197;..." (Unicode I believe) form. This is the error entry
> point.
_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: 1.8 -> G2 Localization related troubles

Покотиленко Костик
В Пнд, 30/01/2006 в 11:04 +0100, Christian Stimming пишет:

> Some other users (including me) have been using the 1.8 datafile with
> non-ascii characters without problems in gnucash-SVN, i.e. the non-ascii
> characters will be displayed and stored correctly in gnucash2.

English, German, French (and some others) characters are all located in
iso8859-1 - That's why it works for you I think.

Russian and Ukrainian characters are in different table - that why it
doesn't work for me.

> Isn't there even a bugreport about this particular file conversion
> problem in bugzilla? If there isn't, please enter one, maybe with a
> short test file. http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash

I'll create bug report with test file and some screenshots.

--
Покотиленко Костик <[hidden email]>

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: 1.8 -> G2 Localization related troubles

Покотиленко Костик
In reply to this post by Christian Stimming
The bug is posted at:
http://bugzilla.gnome.org/show_bug.cgi?id=329202

Screenshots and test file attached.

BTW, GnuCash-1.8.10-Report.png shows the
http://bugzilla.gnome.org/show_bug.cgi?id=310102
bug which is marked obsolete, and the rest are about G2

--
Покотиленко Костик <[hidden email]>

test1 (2K) Download Attachment
GnuCash-1.8.10-Accounts.png (17K) Download Attachment
GnuCash-1.8.10-Report.png (21K) Download Attachment
GnuCash-1.8.10-Transactions.png (18K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 1.8 -> G2 Localization related troubles

Dominique Corbex
In reply to this post by Покотиленко Костик
Le lundi 30 janvier 2006 à 10:58 +0200, Покотиленко Костик a écrit :
> Hi.
>
> Some time ago I was reporting a "Bug 310102" in 1.8. It's about not
> correct display of non-English characters in reports.
>

For switching fonts in GnuCash 1.8 reports, install the schema file
joined to this mail.

$ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
$ sudo gconftool-2 --makefile-install-rule gnucash.schemas

Then run gconf editor, goto to : GNOME/Documents/HTML-Editor
and edit fonts and size. The changes are directly applied in the report
window.


--
Dominique Corbex <[hidden email]>

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel

gnucash.schemas (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: 1.8 -> G2 Localization related troubles

Derek Atkins
In reply to this post by Покотиленко Костик
Покотиленко Костик <[hidden email]> writes:

> The bug is posted at:
> http://bugzilla.gnome.org/show_bug.cgi?id=329202
>
> Screenshots and test file attached.

I think he meant "attached to the bug report -- not attached to
an email".

-derek
--
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       [hidden email]                        PGP key available

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: 1.8 -> G2 Localization related troubles

Покотиленко Костик
In reply to this post by Dominique Corbex
Thanks, I'll try.

В Пнд, 30/01/2006 в 19:03 +0100, Dominique Corbex пишет:

> Le lundi 30 janvier 2006 à 10:58 +0200, Покотиленко Костик a écrit :
> > Hi.
> >
> > Some time ago I was reporting a "Bug 310102" in 1.8. It's about not
> > correct display of non-English characters in reports.
> >
>
> For switching fonts in GnuCash 1.8 reports, install the schema file
> joined to this mail.
>
> $ export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
> $ sudo gconftool-2 --makefile-install-rule gnucash.schemas
>
> Then run gconf editor, goto to : GNOME/Documents/HTML-Editor
> and edit fonts and size. The changes are directly applied in the report
> window.
>
>
> _______________________________________________
> gnucash-devel mailing list
> [hidden email]
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
--
Покотиленко Костик <[hidden email]>

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: 1.8 -> G2 Localization related troubles

Didier Vidal
In reply to this post by Покотиленко Костик
Have you tried to add (manually) the encoding of your files in the
header of the XML gnucash 1.8 files ?
Instead of starting the file with

<?xml version="1.0"?>

start with

<?xml version="1.0" encoding="(your codeset)"?>


Didier.



Покотиленко Костик wrote:

>В Пнд, 30/01/2006 в 11:04 +0100, Christian Stimming пишет:
>
>  
>
>>Some other users (including me) have been using the 1.8 datafile with
>>non-ascii characters without problems in gnucash-SVN, i.e. the non-ascii
>>characters will be displayed and stored correctly in gnucash2.
>>    
>>
>
>English, German, French (and some others) characters are all located in
>iso8859-1 - That's why it works for you I think.
>
>Russian and Ukrainian characters are in different table - that why it
>doesn't work for me.
>
>  
>
>>Isn't there even a bugreport about this particular file conversion
>>problem in bugzilla? If there isn't, please enter one, maybe with a
>>short test file. http://bugzilla.gnome.org/enter_bug.cgi?product=GnuCash
>>    
>>
>
>I'll create bug report with test file and some screenshots.
>
>  
>

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Reply | Threaded
Open this post in threaded view
|

Re: 1.8 -> G2 Localization related troubles

Покотиленко Костик

В Суб, 04/02/2006 в 09:25 +0100, Didier Vidal пишет:
> Have you tried to add (manually) the encoding of your files in the
> header of the XML gnucash 1.8 files ?
> Instead of starting the file with
>
> <?xml version="1.0"?>
>
> start with
>
> <?xml version="1.0" encoding="(your codeset)"?>

Please read:

http://bugzilla.gnome.org/show_bug.cgi?id=329202


--
Покотиленко Костик <[hidden email]>

_______________________________________________
gnucash-devel mailing list
[hidden email]
https://lists.gnucash.org/mailman/listinfo/gnucash-devel