Mercurial Review Board UnicodeEncodeError:'charmap' 编解码器无法将位置 31 中的字符 u'\ufffd' 编码:字符映射到<u



我似乎在mercurial(使用记事本++(中打开了一个.py文件,只是出于好奇来检查mercurial hg扩展如何工作,我现在无法使用审查板:这是我面临的错误。我什至替换了审查板文件夹,但似乎编译的 python 文件正在产生问题。 如果有某种方法可以重新编译这些以重置编码,我会很高兴:

chcp 65001
set PYTHONIOENCODING=utf-8

我还尝试按照一些帖子中的建议在我的 windows 命令行上设置编码以解决编码问题:

#!python
** Mercurial version (4.6.1).  TortoiseHg version (4.6.1)
** Command: --nofork workbench
** CWD: C:hiteshiLatestGM_dev
** Encoding: cp1252
** Extensions loaded: fetch, gestalt, kilnauth, big-push, kiln, caseguard, hgflow, strip, mq, reviewboard, histedit, shelve, largefiles, tortoisehg.util.configitems
** Python version: 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [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.2 PyQt-5.9.1 QScintilla-2.10.2.dev1711012104
Traceback (most recent call last):
File "tortoisehghgqtpostreview.pyo", line 361, in accept
File "tortoisehghgqtpostreview.pyo", line 274, in postReviewOpts
File "tortoisehghgqtpostreview.pyo", line 263, in getSummary
File "tortoisehgutilhglib.pyo", line 117, in fromunicode
File "encodingscp1252.pyo", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode character u'ufffd' in position 31: character maps to <undefined>

我们遇到了问题,汞更新版本(4.6(与REview板版本不兼容,似乎这个问题已经在龟汞论坛上提出。解决方案 1( 将汞恢复到以前的版本 4.5。某事或 2( 使用"导出到补丁"选项手动更新审查委员会

最新更新