⛳
Windows コマンドプロンプトのデフォルト文字コード取得
Windows コマンドプロンプトのデフォルト文字コード取得
>python
Python 3.10.8 (tags/v3.10.8:aaaf517, Oct 11 2022, 16:50:30) [MSC v.1933 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import _locale
>>> _locale._getdefaultlocale()
('ja_JP', 'cp932')
参考
Discussion