diff --git a/jupyterlab_git/git.py b/jupyterlab_git/git.py index 91e7472f6..e2eaedb7d 100644 --- a/jupyterlab_git/git.py +++ b/jupyterlab_git/git.py @@ -5,6 +5,7 @@ import re import subprocess from urllib.parse import unquote +from codecs import decode, escape_decode import pexpect import tornado @@ -262,6 +263,8 @@ async def status(self, current_path): to1 = to1[1:] if to1.endswith('"'): to1 = to1[:-1] + to1 = decode(escape_decode(to1)[0],'utf-8') + from_path = decode(escape_decode(from_path)[0],'utf-8') result.append({"x": line[0], "y": line[1], "to": to1, "from": from_path}) return {"code": code, "files": result}