Celsius Temperature degree character using U8GLIB

Hi,

how can I insert a degree special character for temperature using u8glib?

Now I'm using "*C"

u8g.print(" *C");

But I want to translate in "°C"

Many thanks!

Try (untested):

u8g.write(0xDF);
u8g.print('C');

It was u8g.write(0xBA);

Thanks

:slight_smile:

The newer u8g2 supports UTF-8. Once enabled with u8g2.enableUTF8Print() you should be able to print the degree symbol as expected with u8g2.print("°C"). Of course the font must contain the degree symbol (which should be true for u8g2 ending with "_tf")

Oliver