GNOME Bugzilla – Bug 440818
Contacts with accents (CSV) are not properly imported
Last modified: 2008-06-23 14:03:04 UTC
Evolution does not import any contacts exported as a CSV file from Outlook and Mozilla (these were the cases I tested) that have accented characters. These characters are replaced by many symbol characters, making the contact name longer and incorrect. Contacts that have only non-accented characters work fine.
Created attachment 88701 [details] Contacts.csv Example Outlook CSV file that has this problem (it's in French).
Created attachment 88703 [details] [review] utf8.patch I created a patch that solves this problem for latin languages like French, Portuguese, Spanish, etc. It may serve as base for a more generic solution. Comments are welcome!
*** Bug 440817 has been marked as a duplicate of this bug. ***
also see bug 334176...
Thanks for letting me know. It works here with that example file (as I commented in that report).
Moving to Addressbook.
Hi Rodrigo, your patch looks fine, I thought we can reuse the default charset from mail instead of ISO-8859-1, but it's under /mail/display/charset, thus probably not so good here. When I'm looking into the code you changed, then I would like to suggest to check for eof in reading between quotes, because the code as is now can stop responding very easily, when passing there a broken file. I know, it's not your code, but if you would mind. (I know, I know, it's more than a year old patch...)
Created attachment 113258 [details] updated patch
Updated patch committed to trunk. Committed revision 35677.
Actually, the committed patch leaks memory. I'll fix it within the bug #539755.