From 7d844096285e8ddb4a663d94b2e44665b0e7be7a Mon Sep 17 00:00:00 2001 From: SomberNight Date: Tue, 4 Sep 2018 16:31:35 +0200 Subject: [PATCH] fix #4078 --- electrum/qrscanner.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/qrscanner.py b/electrum/qrscanner.py index 56e0a18af..df5f92a1d 100644 --- a/electrum/qrscanner.py +++ b/electrum/qrscanner.py @@ -75,7 +75,7 @@ def _find_system_cameras(): if os.path.exists(device_root): for device in os.listdir(device_root): try: - with open(os.path.join(device_root, device, 'name')) as f: + with open(os.path.join(device_root, device, 'name'), encoding='utf-8') as f: name = f.read() except IOError: continue