olikraus / u8g2

U8glib library for monochrome displays, version 2
Other
4.91k stars 1.02k forks source link

"°" displayed incorrectly #2413

Closed Vincent0690 closed 3 months ago

Vincent0690 commented 3 months ago

image

Hello, when using this font the degree character is always preceded by a "Â".

u8x8.setFont(u8x8_font_8x13B_1x2_f);
u8x8.print("°");

I am using a SSD1306.

olikraus commented 3 months ago

Probably you need to enable UTF8 mode: https://github.com/olikraus/u8g2/wiki/u8g2reference#enableutf8print

Vincent0690 commented 3 months ago

Oops yes sorry, thanks!