Skip to content

ascii encode issue #57

@roopkeed

Description

@roopkeed

(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') >

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions