New issue 2377: #2377
https://bitbucket.org/pypy/pypy/issues/2377/2377
Daniil Yarancev:
Using last version of PyPy on Windows (5.3.1), issuing a "pypy -m ensurepip"
command gives strange error:
```
#!python
File "C:\pypy2-v5.3.1-win32\lib-python\2.7\mimetypes.py", line 267, in
read_windows_registry
mimetype = mimetype.encode(default_encoding)
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 0:
ordinal not in range(128)
```
I use Russian version of Windows 10 (10.0.10586 build)
But I found a hack for resolving this error: changed
```
#!python
mimetype = mimetype.encode(default_encoding)
to
mimetype = mimetype
```
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue