Windows operating system
I use the following script \.git\hooks\commit-msg
#!/bin/sh
d:/VENV37/Scripts/activate.bat
COMMIT_MSG_FILE=$1
d:/VENV37/Scripts/python .git/hooks/commit-msg.py "$COMMIT_MSG_FILE"
How to get the correct display of characters in the console if the file is in UTF-8?
In addition to the previous message
The terminal displays a message if I switch the character set to cp1251
But switching the encoding in \.git\hooks\commit-msg.py to cp1251 does not give any result
Won! Indeed, some kind of symbol crept in. This behavior occurs if, when writing text, you correct the spelling using PuntoSwitcher. Apparently, this program leaves some traces when correcting the text.
I had to rewrite the text of the message completely carefully by hand and everything worked.
Everything is beautiful in the terminal!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.