'charmap' codec can't encode characters in position 0-1: character maps to <undefined>
Created originally on Bitbucket by Anonymous
When I was entered some query text the Workbench throwing following exception.
repro steps:
- Enter some query text
observed:
#!python
** Mercurial version (2.7.1). TortoiseHg version (2.9.1)
** Command: --nofork workbench
** CWD: D:\Project\Wilco\intake
** Encoding: cp1252
** Extensions loaded: churn, mq, rebase
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-4.8.4 PyQt-4.10.2 QScintilla-2.7.2
Traceback (most recent call last):
File "tortoisehg\hgqt\repofilter.pyo", line 246, in _updateQueryType
File "tortoisehg\hgqt\repofilter.pyo", line 56, in _querytype
File "tortoisehg\hgqt\repofilter.pyo", line 26, in _firstword
File "tortoisehg\util\hglib.pyo", line 70, in fromunicode
File "encodings\cp1252.pyo", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode characters in position 0-1: character maps to <undefined>