Hi,
I have to agree that trying to display a "degree" symbol for temperature is very tricky. It might work for some displays and not others because they might have different fonts. The compiler should always generate the same ascii code from a quoted character but only if that character is mapped to the same ascii code and that depends on the code page being used. So i would be very careful and think this out carefully before trying to print out special characters like that in a given domain.
For example, the HD66717 controller data sheet shows a dash "-" at char position 0xB0 and shows what looks like a degree symbol at char position 0xDF. So if we choose 0xB0 as the standard then it doesnt work on this display, and if we choose 0xDF as the standard then it doesnt work on displays that use 0xB0.
I also checked my 'personal' editor and it shows a small degree symbol at 0xB0 but a larger degree symbol at 0xBA.
So the main idea here is "be very careful and think it out all the way to the user's end display and font choice".
I have to agree that trying to display a "degree" symbol for temperature is very tricky. It might work for some displays and not others because they might have different fonts. The compiler should always generate the same ascii code from a quoted character but only if that character is mapped to the same ascii code and that depends on the code page being used. So i would be very careful and think this out carefully before trying to print out special characters like that in a given domain.
For example, the HD66717 controller data sheet shows a dash "-" at char position 0xB0 and shows what looks like a degree symbol at char position 0xDF. So if we choose 0xB0 as the standard then it doesnt work on this display, and if we choose 0xDF as the standard then it doesnt work on displays that use 0xB0.
I also checked my 'personal' editor and it shows a small degree symbol at 0xB0 but a larger degree symbol at 0xBA.
So the main idea here is "be very careful and think it out all the way to the user's end display and font choice".