I am using an esp8266 as my main processor (no arduino hooked up to tx and rx) and I can read in the wifi name from the EEprom, but when I display it as the value=" wifivariablename" I end up getting a bunch of ��� where there are not characters. When I check the string length of the wifi name it comes up as 32 characters, even though it’s only 7 characters, so it’s counting the � as characters. the eeprom shows them as 0’s when I print them in the serial window.
How do I eliminate the extra spaces, and I guess change any spaces to the space charcter, not �
s += "</label><input name='ssid' length=32 value="""; s += esid; s += """> ";
the html code that is displayed looks like this, and interestingly when I cut from the browser and paste to this message all the extra spaces are gone, so I’ve simulated them:
<form method='get' action='a'><label>SSID:chipdip </label><input name='ssid' length=32 value=chipdip >