Issue #2032 duplicate

view file:UnicodeEncodeError: 'ascii' codec can't encode character

Anonymous created an issue



Mercurial version (2.2.3). TortoiseHg version (2.4.2) Command: --nofork workbench CWD: D:\newsql Encoding: cp936 Extensions loaded: mq, transplant, graphlog, hggit, hgsubversion, largefiles, win32mbcs, churn, extdiff 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=0, build=6002, platform=2, service_pack='Service Pack 2') Processor architecture: x64 ** Qt-4.8.0 PyQt-4.9.1 Traceback (most recent call last): File "tortoisehg\hgqt\grep.pyo", line 694, in onViewFile File "tortoisehg\hgqt\qtlib.pyo", line 159, in editfiles File "subprocess.pyo", line 679, in init File "subprocess.pyo", line 870, in _execute_child UnicodeEncodeError: 'ascii' codec can't encode characters in position 15-30: ordinal not in range(128)


this just happen when I open file in the grep result pan , on workbench. (right click and choose view file) it's because of filename not in english.

and if in manifest of workbench, if choose 'view at revision' after right click on these filenames, nothing happened. no editors appear ,and no alert window.

in other places these filenames cause no problem.