Python Testing with pytest, Second Edition: Writing out cards to command line causes UnicodeEncodingError(Page 12)

@brianokken

After installing the cards project card creation appears to be working but when I try to run the “card” command I get the following error:

File “C:\Users\geza.pocs\Desktop\Environments\pytest-env\pytest-env\lib\site-packages\cards\cli.py”, line 63, in list_cards
print(out.getvalue())
File “C:\Users\geza.pocs\AppData\Local\Programs\Python\Python310\lib\encodings\cp1252.py”, line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: ‘charmap’ codec can’t encode characters in position 91-131: character maps to

This was repeatable on 2 different Windows installations.