My string is Niệm Bồ Tát (Thiá»n sư Nhất Hạnh) and I want to decode it to Niệm Bồ Tát (Thiền sư Nhất Hạnh). I see in that site can do that ht
Niệm Bồ Tát (Thiá»n sư Nhất Hạnh)
Niệm Bồ Tát (Thiền sư Nhất Hạnh)
Try:
str.encode('ascii', 'ignore').decode('utf-8')
You're encoding the string in ASCII format / ignoring the errors and decoding in UTF-8. This may remove the accents, but it's one approach.