latin-1 to ascii

前端 未结 6 1103
佛祖请我去吃肉
佛祖请我去吃肉 2020-11-30 01:46

I have a unicode string with accented latin chars e.g.

n=unicode(\'Wikipédia, le projet d’encyclopédie\',\'utf-8\')

I want to convert it to

6条回答
  •  一个人的身影
    2020-11-30 02:01

    Without measuring, I would expect that the .translate method of Unicode strings is the fastest solution. You should definitely make your own measurements, though.

提交回复
热议问题