How to replace a string character (Latin-1) 'ē', whose code is u0113 with 'e' (code UTF-8: u0065)

How to replace the string character (latin-1) 'ē' , whose code is u0113 with 'e' (code UTF-8: u0065)

I get a false python error:

+4
source share
1 answer

May be:

str.decode("utf-8").replace(u"\u0113", "e")

0
source

Source: https://habr.com/ru/post/1620179/


All Articles