Last active
March 8, 2024 08:31
-
-
Save jitvimol/35f300050d56827e9ab859492ec4a8ef to your computer and use it in GitHub Desktop.
fix NotImplementedError: A UTF-8 locale is required. Got ANSI_X3.4-1968 #colab #python
This file contains hidden or 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 locale | |
# check exist setting | |
print(locale.getpreferredencoding()) | |
def getpreferredencoding(do_setlocale = True): | |
return "UTF-8"file:///D:/Program%20Files/Lepton/resources/app.asar/index.html# | |
locale.getpreferredencoding = getpreferredencoding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment