human
Python - read text file with weird utf-16 format
assistant
Here is some code to open a text file `data.txt` in io module with encoding `utf-16-le`

file = io.open('data.txt', 'r', encoding='utf-16-le')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.