pip install unidecode
python
from unidecode import unidecode
ascii_str = unidecode(unicode_str)
print(ascii_str)
Ni Hao , Shi Jie !
python
from unidecode import unidecode
ascii_str = unidecode(unicode_str)
print(ascii_str)
xing fu
python
# -*- coding: utf-8 -*-