summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sounddevice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sounddevice.py b/sounddevice.py
index 9aacfc4..2d79f35 100644
--- a/sounddevice.py
+++ b/sounddevice.py
@@ -1913,7 +1913,7 @@ class DeviceList(tuple):
outs=info['max_output_channels'])
for idx, info in enumerate(self))
if _sys.version_info.major < 3:
- return text.encode(_sys.stdout.encoding or 'utf-8')
+ return text.encode(_sys.stdout.encoding or 'utf-8', 'replace')
return text