Windows git review reported an error. UnicodeDecodeError

Traceback (most recent call last):
File “c:\gary\software\tool\python\python38-32\lib\runpy. py”, line 193, in _run_module_as_main
return _run_code(code, main_globals, None,
File “c:\gary\software\tool\python\python38-32\lib\runpy. py”, line 86, in _run_code
exec(code, run_globals)
File “C:\Gary\software\Tool\Python\Python38-32\Scripts\git-review.exe\__main__. py”, line 9, in <module>
File “c:\gary\software\tool\python\python38-32\lib\site-packages\git_review\cmd. py”, line 1714, in main
_main()
File “c:\gary\software\tool\python\python38-32\lib\site-packages\git_review\cmd. py”, line 1587, in _main
check_remote(branch, remote, config[‘scheme’],
File “c:\gary\software\tool\python\python38-32\lib\site-packages\git_review\cmd. py”, line 781, in check_remote
has_color = check_color_support()
File “c:\gary\software\tool\python\python38-32\lib\site-packages\git_review\cmd. py”, line 696, in check_color_support
(status, output) = run_command_status(test_command)
File “c:\gary\software\tool\python\python38-32\lib\site-packages\git_review\cmd. py”, line 140, in run_command_status
(out, nothing) = p.communicate(stdin)
File “c:\gary\software\tool\python\python38-32\lib\subprocess. py”, line 1011, in communicate
stdout = self.stdout.read()
UnicodeDecodeError: ‘gbk’ codec can’t decode byte 0xa7 in position 21: illegal multibyte sequence

In the directory where python is installed, there is a file subprocess.py in Python38-32\Lib\ with encoding=NONE, change it to encoding=’utf-8′ and you can

Read More: