UnicodeEncodeError
#!python
** Mercurial version (5.9.2). TortoiseHg version (5.9.2)
** Command: --nofork workbench
** CWD: C:\Users\mb96851\Desktop\BSA\BSA Other\Buyer Toolkit\ImpPO-wip
** Encoding: cp1252
** Extensions loaded: children, convert, eol, graphlog, mq, rebase, strip, tortoisehg.util.configitems, zipdoc
** Python version: 2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-5.9.9 PyQt-5.13.2 QScintilla-2.10.8
Traceback (most recent call last):
File "tortoisehg\hgqt\commit.pyo", line 1541, in accept
File "tortoisehg\util\hglib.pyo", line 170, in fromunicode
File "encodings\cp1252.pyo", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode character u'\u2666' in position 16: character maps to <undefined>
Google tells me that character is a black diamond suit emoji. There weren't any visible emojis in my code or commit message so I'm not sure where it would have come from. When I restarted TortoiseHg and re-did the commit it worked without problem. The only thing different was the commit message since the original was lost and I had to re-write it.