Hi Alain,
It is a bit confusing I guess, but maybe this will help explain it.
When you place the degree symbol inside quotes like this "°" the value gets converted to
$B0.
If you send $B0 to a terminal program like this: HSEROUT [$B0] it will display the ° symbol.
If you try this with LCDOUT, the value of $B0 displays a - symbol. Which is what it should
be if you look at the LCD data sheet.
You can use extended ASCII characters like "°öµC" with no problem if sending it to an ASCII
terminal program, and it displays each character just fine. It's just no going to produce what
you might expect when formatting data like this for an LCD display. The compiler "assumes"
data is being formatted for an ASCII terminal.
HSEROUT ["º°A",13,10] ' prints º°A to an ASCII terminal. These were entered with ALT 167,
and ALT 248 on the numeric keypad.
LCDOUT $FE,$C0,"º°A" ' produces ]-A on an LCD, but LCDOUT $FE,$C0,"[]{}!@#$%^&*()_+"
prints everything as shown.
Why 2.5 throws the warning up I'm not sure, but it's probably something they should look
into. Or at least indicate in the manual that ASCII codes >127 aren't supported in quotes.
Bookmarks