Problem with UTF-8 and Label

Hello all,
I can try to show temperature as text in Label and if I want to append to text °C I return only some char :frowning:
You can see it in the picture. Please can you help me with what I do badly?

return str(value) + u'°C'

1 Like

Thanks: D
Thank you and what does the parameter u mean?

u = Unicode :slight_smile: it treats the string as Unicode. There are others such as r for raw strings (doesn’t do any processing to look for special chars etc)

Thanks you :smiley: