You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hidapi responds to empty serial numbers with a unicode charakter u'\u0409'.
This gives an error on ASCII terminals or on Windows with different codepages:
" return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u0409' in position
16: character maps to
The serial number field is explicitly declared in hid.c as unicode type for no apparent reason. Other fields like manufacturer, product etc are declared as normal strings, so there is no error.
Used system: Win7 x64
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
import sys
sys.stdout.encoding
'cp850'
The text was updated successfully, but these errors were encountered:
Hidapi responds to empty serial numbers with a unicode charakter u'\u0409'.
This gives an error on ASCII terminals or on Windows with different codepages:
" return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode character u'\u0409' in position
16: character maps to
The serial number field is explicitly declared in hid.c as unicode type for no apparent reason. Other fields like manufacturer, product etc are declared as normal strings, so there is no error.
Used system: Win7 x64
Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win
The text was updated successfully, but these errors were encountered: