Skip to content

CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE not handled #2

Description

@ltjw

utf8_quopri_dirty_fix.diff.txt

If someone is using UTF-8 characters in their contacts, then names are encoded in the following pattern:

N;CHARSET=UTF-8;ENCODING=QUOTED-PRINTABLE:=6E=6F1=61=74=61=63=69;

The script does not convert them. This may not be a problem for only ascii-based languages, but for all other (which use UTF-8) it is.

Quick and dirty fix attached.

see more info:
https://stackoverflow.com/questions/43824650/encoding-issue-decode-quoted-printable-string-in-python
https://stackoverflow.com/questions/20939674/how-should-i-use-the-proper-charset-for-my-vcard

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions