diff options
-rw-r--r-- | ranger/ext/img_display.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 2cce5c7a..6bea52f4 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -308,7 +308,7 @@ class ITerm2ImageDisplayer(ImageDisplayer, FileManagerAware): def _encode_image_content(path): """Read and encode the contents of path""" with open(path, 'rb') as fobj: - return base64.b64encode(fobj.read()) + return base64.b64encode(fobj.read()).decode('utf-8') @staticmethod def _get_image_dimensions(path): |