Volumio 3.198, Python3.x,
I want show the current song and artist (= new_title) from V’s API on my simple Preamp 20x2 display.
The first problem is that it will only display simple ASCII characters so I have a python line to ‘convert’ it.
title = unicodedata.normalize(“NFD”, new_title).encode(‘ascii’, ‘ignore’)
That seems to produce a byte string which I think I need to ‘convert’ to a simple string.
I have tried title = str(title), but that produces, for example.
b’Dire Straits - Once Upon A Time In’
And I am not sure how that will display.
Will it be ok or should I use another method?
Thanks