-->
Page 1 of 1

Character encoding problem with screen display

PostPosted: Tue Oct 20, 2015 2:07 pm
by timathis
When I entered this code from this forum blog for an ac power controller seems to work good except the character
encoding seems to be a problem.

Print “ESP8266 WiFi Solid State Relay”
print
Button “On” [on]
button “Off” [off]
button “Exit” [exit]
wait

[on]

I am getting the correct text on screen but it has leading and following strange chars(high byte ascii?)
Is there a specific encoding I should set the browser for?
I have tried several including UTF8.

I have tried to upload a png image of the screen.
po 2 0
Wait

[off]
po 2 1
wait

Re: Character encoding problem with screen display

PostPosted: Tue Oct 20, 2015 6:04 pm
by Mmiscool
I personally have not messed with my browser settings for character encoding.

Using google chrome with language set to en-us.

I did run your code and found a problem.

The quotation marks are not normal.

notice the difference between " " and “ ”

Modified working code:
Code: Select allPrint "ESP8266 WiFi Solid State Relay"
print
Button "On" [on]
button "Off" [off]
button "Exit" [exit]
wait



Non working weird quotation marks code:
Code: Select allPrint “ESP8266 WiFi Solid State Relay”
print
Button “On” [on]
button “Off” [off]
button “Exit” [exit]
wait

Re: Character encoding problem with screen display

PostPosted: Tue Oct 20, 2015 11:59 pm
by timathis
Good eye there.

I just copied and pasted the code from the blog example.
The copy and paste process is changing the quotes from the original.
Its doing same thing with google and firefox andwhen I paste the original code into notepad.
I will need to research that to prevent future problems.
I use chrome and firefox.

Thanks

timathis