-->
Page 1 of 1

Code corrupted using space and chr(176)

PostPosted: Fri Jan 26, 2018 6:30 am
by Alberto_2
To display the celsius abbreviasion I use chr(32) & chr(176) & chr(67). The ascii sequence is loaded into a variable (dgr) and then the same variable is used with the oledprint command.

When I save the program the variable dgr get corrupted into chr(195) & chr(195) & chr(67). If I do remove the space (chr(32)) then the variable wiil not be corrupted and the oledprint is also correct ( without the space obviously)

Using version 3.0 alpha

Edited:

Also without any spaces, when I load the program using "EDIT" the character chr(195) is automaticaly inserted in front of chr(176). I need to remove chr(195) manualy, before to save the code again to have the corrected print out.