I am trying to display temperaure values in °C on a child window. Calling the following function inside WM_PAINT (in child window callback). But only number is displayed. The intended unit (°C) is not being displayed. What might be the reason?
void ShowGTemperaure(uint8_t temperature)
{
char str[10];
snprintf(str, sizeof(str), "%u", temperature);
strcat(str, " ");
strcat(str, °C);
GUI_SetFont(FONT_10);
GUI_SetColor(LIGHT_GREY);
GUI_DispStringAt(str, 10, 0);
strcpy(str, "0");
strcat(str, " ");
strcat(str, °C);
GUI_DispStringAt(str, 10, 75);
}
void ShowGTemperaure(uint8_t temperature)
{
char str[10];
snprintf(str, sizeof(str), "%u", temperature);
strcat(str, " ");
strcat(str, °C);
GUI_SetFont(FONT_10);
GUI_SetColor(LIGHT_GREY);
GUI_DispStringAt(str, 10, 0);
strcpy(str, "0");
strcat(str, " ");
strcat(str, °C);
GUI_DispStringAt(str, 10, 75);
}