Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Encoding error on Windows and Chinese version. #38

Open
dofine opened this issue Sep 12, 2017 · 0 comments
Open

Encoding error on Windows and Chinese version. #38

dofine opened this issue Sep 12, 2017 · 0 comments

Comments

@dofine
Copy link

dofine commented Sep 12, 2017

Below is the traceback when I try to use git webui in Chinese Windows system with Python 2.7.
The repo path itself doesn't contain any non-ascii characters.

Traceback (most recent call last):
  File "C:\Python27\lib\SocketServer.py", line 295, in _handle_request_noblock
    self.process_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 321, in process_request
    self.finish_request(request, client_address)
  File "C:\Python27\lib\SocketServer.py", line 334, in finish_request
    self.RequestHandlerClass(request, client_address, self)
  File "C:\Python27\lib\SocketServer.py", line 649, in __init__
    self.handle()
  File "C:\Python27\lib\BaseHTTPServer.py", line 340, in handle
    self.handle_one_request()
  File "C:\Python27\lib\BaseHTTPServer.py", line 328, in handle_one_request
    method()
  File "C:/Users/n3132/.git-webui/release/libexec/git-core/git-webui", line 106, in do_GET
    self.send_text(200, codecs.encode(wc, "utf-8"))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xb9 in position 4: ordinal not in range(128)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant