Closed nextstate closed 3 years ago
So your console/terminal is not able to print unicode characters?
I am using powershell in a Windows terminal. I think it can print unicode characters.
it is this symbol: ℹ
I wonder if it is a general problem on windows with python, because I don't even use that character by that UTF-code, but like this: https://github.com/greenbone/autohooks/blob/master/autohooks/terminal.py#L34
The following line in a script prints out that symbol in my terminal:
print(u'\N{INFORMATION SOURCE}')
I am really not into powershell or windows terminals ... maybe something like this (a wrong shell setup in the virtual environment?)?
That link helped fix the issue locally for me. The following lines worked in powershell:
chcp 65001
$env:PYTHONIOENCODING = "utf-8"
Since I think this is a shell-setup issue, I will close this for now, but will keep in mind, that we might want to use non utf-8 backup characters ...
I setup the git pre-commit hook using autohooks. My first attempt at a commit resulted in the following traceback: