Lookuperror: unknown encoding: cp65001 when executing Python

Appears during FETCH V8

E:\GitProject\svn_v8>fetch v8
Running: 'E:\GitProject\libcef\depot_tools\python276_bin\python.exe' 'E:\GitProj
ect\libcef\depot_tools\gclient.py' root
Traceback (most recent call last):
  File "E:\GitProject\libcef\depot_tools\\fetch.py", line 353, in <module>
    sys.exit(main())
  File "E:\GitProject\libcef\depot_tools\\fetch.py", line 348, in main
    return run(options, spec, root)
  File "E:\GitProject\libcef\depot_tools\\fetch.py", line 342, in run
    return checkout.init()
  File "E:\GitProject\libcef\depot_tools\\fetch.py", line 134, in init
    self.run_gclient('config', '--spec', self._format_spec())
  File "E:\GitProject\libcef\depot_tools\\fetch.py", line 76, in run_gclient
    return self.run(cmd_prefix + cmd, **kwargs)
  File "E:\GitProject\libcef\depot_tools\\fetch.py", line 63, in run
    print 'Running: %s' % (' '.join(pipes.quote(x) for x in cmd))
LookupError: unknown encoding: cp65001

LookupError: unknown encoding: cp65001
This error can be solved by changing the encoding mode:

chcp 1252

You can also set the default character encoding
HKEY_CURRENT_USER\Console\%SystemRoot%_system32_cmd.exe\CodePage by modifying the registry CodePage value


Read More: