OpenHome Forum
UnicodeEncodeError in PyOhNet - Printable Version

+- OpenHome Forum (http://forum.openhome.org)
+-- Forum: OpenHome (/forumdisplay.php?fid=1)
+--- Forum: Net (/forumdisplay.php?fid=5)
+--- Thread: UnicodeEncodeError in PyOhNet (/showthread.php?tid=1852)



UnicodeEncodeError in PyOhNet - Latka - 31-01-2018 04:35 PM

Hi!

There seem to be a problem with unicode when present in a device's xml.

The exception points to line 56 in _Device.py. If I add
Code:
xml      = xml.encode('utf8')
everything works fine.
If you consider this a valid fix, or something else, maybe you could add this to the source files.

Thanks,
Latka