-
-
Notifications
You must be signed in to change notification settings - Fork 268
Closed
Description
Hi,
I came accross a strange behaviour when using colorama with in Gitbash.
Here is a test file :
import colorama
print("\N{Heavy Check Mark} check mark")Standard run is OK :
$ python test_colorama.py
✔ check markBut stderr is not empty (we get an error) when printing into a file :
$ python test_colorama.py > output.txt
Traceback (most recent call last):
File "test_colorama.py", line 3, in <module>
print("\N{Heavy Check Mark} check mark")
File "C:\[...]\.venv\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u2714' in position 0: character maps to <undefined> Metadata
Metadata
Assignees
Labels
No labels