Report Bugs Here

Moderator: Mmiscool

User avatar
By bugs
#60716 Update.
Traced the problem - it is not character set or browser.
This code works correctly
Code: Select alla$ = "z" & "=" & "z"
wprint "a$ is "
wprint a$
wprint "<br>"
wprint "length of a$ is "
wprint len(a$)
wprint "<br>"
end

with the result:-
Code: Select alla$ is z=z
length of a$ is 3

and this code adds the extra spaces - so looks like a parsing fault?
Code: Select alla$= "z" & "=" & "z"
wprint "a$ is "
wprint a$
wprint "<br>"
wprint "length of a$ is "
wprint len(a$)
wprint "<br>"
end

the result is:-
Code: Select alla$ is z = z
length of a$ is 5

Anyway, I know how to get round it now...
User avatar
By bugs
#60747 Ok - I had reflashed the nodemcu yesterday but did not re-format.
Tried that, as you suggested but the esptool just crashes when pressing the format button. I was able to format using the old version 2 flasher and then re-flashed v3a65.
Unfortunately no change:-
a$= at the start of the line causes the contents of the string to be padded while a$ = does not trigger the fault.

The effect is the same on another ESP-01 I tried.