[Calypso] [PATCH] Use UTF-8 when importing files to avoid mojobake
pere at hungry.com
Fri Jan 22 14:54:34 PST 2016
> 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
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
PS: I've applied to become a member of the alioth project.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1851 bytes
Desc: not available
More information about the Calypso