oscar
oscar copied to clipboard
ascii encode issue
(New to coding python, New in Github. Sorry to do the wrong way) Because of ascii encode issue with description received from Digiteyes, I had to add " .encode('utf-8') " to <try: desc = u.get_description(barcode) print "Received description '{0}' for barcode {1}".format(desc, unicode(barcode)) except CodeInvalid: print "Barcode {0} not recognized as a UPC; creating learning opportunity".format(unicode(barcode)).encode('utf-8') >
I wanted my kitchen PC to have more horsepower than a Pi, so I've modified the installation routine quite a bit in my fork, and have included your fix, thanks!