Python and character normalization

前端 未结 4 2139
有刺的猬
有刺的猬 2020-12-01 09:42

Hello I retrieve text based utf8 data from a foreign source which contains special chars such as u\"ıöüç\" while I want to normalize them to English such as

4条回答
  •  北荒
    北荒 (楼主)
    2020-12-01 10:02

    import unicodedata
    unicodedata.normalize()
    

    http://docs.python.org/library/unicodedata.html

提交回复
热议问题