<s>[INST] I have a document written in a legacy language (that means it isn't ASCII) that I want to implant in another application. Is there a way in Python to auto-detect the character encoding of the document so that I can smuggle the document through its interface?[/INST]