[TextEditor] Added support for simplified chinese encoding detection.