adafruit / Python-Thermal-Printer

216 stars 148 forks source link

Non ASCII Characters #8

Open dmohorn opened 10 years ago

dmohorn commented 10 years ago

Hi - I'm using this library to receive SMS text messages and print. Works, well, but I just discovered that any text other than straight ASCII causes an exception.

UnicodeEncodeError: 'ascii' codec can't encode character u'\xc4' in position 14: ordinal not in range(128)

If someone could fix this either to print a print-able like character or just strip anything above 128, that would be wonderful!

Great library!