diff options
| author | Matthias Geier <Matthias.Geier@gmail.com> | 2017-01-20 21:22:38 +0100 |
|---|---|---|
| committer | Matthias Geier <Matthias.Geier@gmail.com> | 2017-01-26 20:54:09 +0100 |
| commit | 02df4a3c85db41829b34666dcd775c9b967bf347 (patch) | |
| tree | 4fcb6d0075eeb57aa4d0ddbaa08ca645d9c68a98 | |
| parent | 56f8c3f3b5c88d239da33666239064e52276b2a0 (diff) | |
Use 'replace' when encoding unicode device strings
Closes #62.
| -rw-r--r-- | sounddevice.py | 2 |
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 |
