Character encoding in python to replace 'u2019' with '

后端 未结 1 1076
误落风尘
误落风尘 2020-12-22 12:02

I have tried numerous ways to encode this to the end result \"BACK RUSHIN\'\" with the most important character being the right apostrophe \'.

相关标签:
1条回答
  • 2020-12-22 13:03
    >>> import unidecode
    >>> unidecode.unidecode(u'BACK RUSHIN\u2019')
    "BACK RUSHIN'"
    

    unidecode

    0 讨论(0)
提交回复
热议问题