Degrees Symbol on Serial Monitor

Hi all,

Thanks in advance if you can answer this for me!

Im using a temperature sensor and am just wanting to be able to put degrees symbol onto the serial monitor. I have tried the ASCII table printer located here :

https://www.arduino.cc/en/Tutorial/ASCIITable

but there doesnt seem to be degrees? Any help is appreciated.

Cheers, Danny

The degree symbol is 167 (decimal).

Hi,

I have tried 167 but it is just returning a weird symbol that looks like 2 S's over lapping? Can this not be done on a nano?

Cheers Danny

No worries, I've sorted it, it is 176 in decimal :)

Thanks

http://www.asciitable.com/ shows the degree symbol as 167 decimal, so I am not sure why you need 176

HTML Codes Table

ASCII doesn't have a degrees symbol. ASCII is a 7-bit code and is defined for only codes 0 through 127.

I believe the serial monitor uses the Windows-1252 character set, or possibly the ISO 8859-1 character set; the two are almost the same. The degrees symbol is at code 176 in both.

ieee488: http://www.asciitable.com/ shows the degree symbol as 167 decimal, so I am not sure why you need 176

Believe it or not I reckon that table of Extended ASCII Codes on http://www.asciitable.com/ may actually be wrong. Other ASCII tables (such as HTML linked in above post) list the degree symbol as 176 (Hex B0), and char(176) is the correct value for Arduino Serial printing degress symbol, not char(167)

PS: IDE 1.8.3 now uses UTF-8 charset, so coding syntax for degree symbol has changed

see this thread at post #20 onwards

html degree decimal
°

I believe the serial monitor uses the Windows-1252 character set, or possibly the ISO 8859-1 character set; the two are almost the same. The degrees symbol is at code 176 in both.

Source: https://www.degree-symbol.com/

Numerous forms of degrees sign are there and html code is (°). There is full alt codes list and ascii table. I learn from here https://degreessymbolsign.com