Created
October 24, 2022 04:54
-
-
Save korakot/a487f27fdd0d467e069d20b50668873a to your computer and use it in GitHub Desktop.
Read UTF-16 (u16) file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io | |
text = io.open('aa1.txt', encoding='utf-16-le').read() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment