how to writh forign language to the lcd ?
machine85 opened this issue · 2 comments
machine85 commented
Hello,
i am try to writh hebrew to the lcd
i try to use:
bstring = 'Temperature: 30°C'
bstring
'Temperature: 30°C'
bstring.decode('utf-8')
u'Temperature: 30°C
but in python 3 i get the error :
TypeError: decoding str is not supported
thanks
Tom
dbrgn commented
In Python 3, a regular string is already a unicode string. You don't need to do any decoding when writing it to the display, RPLCD always wants unicode strings when writing text to the display.
(Note that I'm not aware of any LCD that supports hebrew characters.)
machine85 commented
Thank you ^(y)