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
Try Universal Encoding Detector its a port of chardet module from Firefox to Python.
chardet