commit 7d844096285e8ddb4a663d94b2e44665b0e7be7a
parent bc35c82619c86dcef8b8e74bb5118b4afae59324
Author: SomberNight <somber.night@protonmail.com>
Date: Tue, 4 Sep 2018 16:31:35 +0200
fix #4078
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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