diff options
author | Yann Voté <yann.vote@logilab.fr> | 2017-02-28 09:54:14 +0100 |
---|---|---|
committer | Yann Voté <yann.vote@logilab.fr> | 2017-02-28 09:54:14 +0100 |
commit | 5ce7119fb687fb992acd244091fa00a388bced80 (patch) | |
tree | e786957324e0933168f192c768cb25a0686ceee7 /logilab | |
parent | 0be3291908df2109831b377f4e2f48d47e9a2429 (diff) | |
download | logilab-common-5ce7119fb687fb992acd244091fa00a388bced80.tar.gz |
[textutils] Add two more manual mappings to convert unicode into ASCII
Diffstat (limited to 'logilab')
-rw-r--r-- | logilab/common/textutils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/logilab/common/textutils.py b/logilab/common/textutils.py index 9046f97..356b1a8 100644 --- a/logilab/common/textutils.py +++ b/logilab/common/textutils.py @@ -70,6 +70,8 @@ MANUAL_UNICODE_MAP = { u'\xf8': u'o', # LATIN SMALL LETTER O WITH STROKE u'\xbb': u'"', # RIGHT-POINTING DOUBLE ANGLE QUOTATION MARK u'\xdf': u'ss', # LATIN SMALL LETTER SHARP S + u'\u2013': u'-', # HYPHEN + u'\u2019': u"'", # SIMPLE QUOTE } def unormalize(ustring, ignorenonascii=None, substitute=None): |