Mercurial Review board UnicodeEncodeError: 'charmap' codec can't encode character u'\ufffd' in position 31: character maps to <undefined>
Mercurial Review board UnicodeEncodeError: 'charmap' codec can't encode character u'\ufffd' in position 31: character maps to <undefined>
我似乎已经在 mercurial 中打开了一个 .py 文件(使用 Notepad++),只是出于好奇想检查 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:\hiteshi\Latest\GM_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 "tortoisehg\hgqt\postreview.pyo", line 361, in accept
File "tortoisehg\hgqt\postreview.pyo", line 274, in postReviewOpts
File "tortoisehg\hgqt\postreview.pyo", line 263, in getSummary
File "tortoisehg\util\hglib.pyo", line 117, in fromunicode
File "encodings\cp1252.pyo", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode character u'\ufffd' in position 31: character maps to <undefined>
我们遇到了问题,Tortoise Hg 更新版本 (4.6) 与审查版不兼容,似乎这个问题已经在 Tortoise Hg 论坛上提出了。解决方案 1) 将 Hg 恢复到之前的版本 4.5 .某事或 2) 使用“导出到补丁”选项手动更新审查委员会
我似乎已经在 mercurial 中打开了一个 .py 文件(使用 Notepad++),只是出于好奇想检查 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:\hiteshi\Latest\GM_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 "tortoisehg\hgqt\postreview.pyo", line 361, in accept
File "tortoisehg\hgqt\postreview.pyo", line 274, in postReviewOpts
File "tortoisehg\hgqt\postreview.pyo", line 263, in getSummary
File "tortoisehg\util\hglib.pyo", line 117, in fromunicode
File "encodings\cp1252.pyo", line 12, in encode
UnicodeEncodeError: 'charmap' codec can't encode character u'\ufffd' in position 31: character maps to <undefined>
我们遇到了问题,Tortoise Hg 更新版本 (4.6) 与审查版不兼容,似乎这个问题已经在 Tortoise Hg 论坛上提出了。解决方案 1) 将 Hg 恢复到之前的版本 4.5 .某事或 2) 使用“导出到补丁”选项手动更新审查委员会