mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-16 16:16:40 +03:00
6ab4e68ff2
Under Windows, the default encoding isn't UTF-8, so we are getting encoding errors when trying to read files. This adds a helper to explicitly set the encoding to UTF-8 in Python3. This doesn't really affect Python2 since it reads the file as byte strings. We can't use 'locale.setlocale' to fix this since (at least on my machine) we can't set the encoding to be UTF-8 on Windows. Fixes #2206 Change-Id: I76e35cc9ae638b433ca61c7bda6478e989bc755a