[Calypso] [PATCH] Use UTF-8 when importing files to avoid mojobake

Petter Reinholdtsen pere at hungry.com
Fri Jan 22 14:54:34 PST 2016

[Petter Reinholdtsen]
> In Debian bug #780034, there is a patch by Gregor Herrmann to make
> sure files are imported as UTF-8, making sure non-ascii characters
> make it into the database.  I've tested the patch, and it work just
> fine.

Here is an updated patch, with a test to check that it work.  It also
check that the import_file() function can import several vCard entries
from the same file, which is a recently feature. :)

> Note, the patch uses 'utf8', while other parts of the code uses
> 'utf-8' for the same effect.  Perhaps this should be changed for
> consistency.  Is there a preference in the project for either of these
> decoding/encoding strings?

As 'utf-8' seem to be used exclusively in decode() calls, I changed to
this value.

PS: I've applied to become a member of the alioth project.
Happy hacking
Petter Reinholdtsen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: calypso-load-utf-8.diff
Type: text/x-diff
Size: 1851 bytes
Desc: not available
URL: <http://keithp.com/pipermail/calypso/attachments/20160122/fc70e729/attachment.diff>

More information about the Calypso mailing list