How to set Python default locale on Windows?

I know that I am changing the locale for the application using

import locale
locale.setlocale(locale.LC_ALL, '')

The documentation says that the default value for a locale usually comes from the LANG environment variable. However, on the Windows platform, this seems different. Where does Python take the default value for a locale? Is there a way to change this default value for all my Python scripts?

+2
source share
2 answers

Windows ​​ . Python , setlocale '' . . , .

+1

, .

0

Source: https://habr.com/ru/post/1524395/


All Articles