Python - can I detect unicode string language code?

前端 未结 7 2027
遇见更好的自我
遇见更好的自我 2020-11-27 16:29

I\'m faced with a situation where I\'m reading a string of text and I need to detect the language code (en, de, fr, es, etc).

Is there a simple way to do this in py

相关标签:
7条回答
  • 2020-11-27 17:03

    Try Universal Encoding Detector its a port of chardet module from Firefox to Python.

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