ASCII characters greater than 127
Posted: Mon Nov 16, 2015 5:54 am
For the temperature controller project, I added the degree symbol to the wprint that outputs the current temp:
Which works/renders just fine (CurrTemp=71.26°F). But, If I edit the program, the ° gets converted to the actual symbol ie: ° . Then when I save the program, the degree symbol gets translated into ° possibly due to the character mapping done in GetRidOfurlCharacters, or possibly from an encoding of the browsers program editor contents during the save POST.
I mention this in case you are familiar with the issue already. Otherwise I will track down the issue and let you know how I solve it.
Code: Select all
wprint "CurrTemp="
wprint htmlvar(curr)
wprint "°F<br>"
Which works/renders just fine (CurrTemp=71.26°F). But, If I edit the program, the ° gets converted to the actual symbol ie: ° . Then when I save the program, the degree symbol gets translated into ° possibly due to the character mapping done in GetRidOfurlCharacters, or possibly from an encoding of the browsers program editor contents during the save POST.
I mention this in case you are familiar with the issue already. Otherwise I will track down the issue and let you know how I solve it.