language-formatters-pre-commit-hooks
language-formatters-pre-commit-hooks copied to clipboard
pretty-format-ini with cp1250 codepage
Hello I use language-formatters-pre-commit-hooks - pretty-format-ini to check the ini files of an older program. This program is for windows and uses cp1250 encoding. When checking, the following message appears:
Traceback (most recent call last):
File "C:\Program Files\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Program Files\Python\Python39\lib\runpy.py", line 87, in run_code
exec(code, run_globals)
File "C:\Program Files\Python\Python39.cache\pre-commit\reponx58ayq8\py_env-python3.9\Scripts\pretty-format-ini.EXE_main.py",
line 7, in
Apparently there is a problem with the code page of the file. When I convert the file to UTF8 the check runs without any problems. Is there any way to define the code page for pretty-format-ini?
I am attaching two files one in utf8 and one for cp1250. Is it possible to possibly work around this?
Thank you in advance for the answer