Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
UnicodeEncodeError in PyOhNet
31-01-2018, 04:35 PM
Post: #1
UnicodeEncodeError in PyOhNet
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
Find all posts by this user


Forum Jump: