importing Bills - character encoding

Mike Evans mikee at saxicola.co.uk
Tue Dec 29 10:35:34 EST 2015


On Mon, 28 Dec 2015 20:59:06 +0800
__ <tereque at gmail.com> wrote:

> the feature of importing Bills and invoices from csv files is a great
> improvement for my little world as it enables other people then just me to
> prepare such documents (which is a huge improvement in the workflow if you
> are not only working just by yourself).
> However being located in China (and therefore dealing with Chinese
> characters at times) I face a big obstacle with this unfortunately. Chines
> characters just won't encode right and only display as hieroglyphs after
> importing.
> 
>
I have a fix for this that "works for me" The chars get mangled with a call to:
line_utf8 = g_locale_to_utf8 (line, -1, NULL, NULL, NULL));
in dialog-bi-import.c

Removing this (plus some other edits) solves the issue "for me" because my input file is already in UTF-8 Unicode  but I have no idea how this would affect Windows or Mac machines or other file encodings.

I'll commit it to git maint for testing.

I guess I should move this to devel list?

Mike



-- 
PGP key:
http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x00CDB13500D7AB53  
-------------- next part --------------
A non-text attachment was scrubbed...
Name: order.csv
Type: text/csv
Size: 251 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20151229/53f89f6b/attachment.csv>


More information about the gnucash-user mailing list