Report Bugs Here

Moderator: Mmiscool

User avatar
By timathis
#31863 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
You do not have the required permissions to view the files attached to this post.
User avatar
By Mmiscool
#31872 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
User avatar
By timathis
#31883 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