-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSIDs with Chinese characters fail #33
Comments
Hi, Sorry for the delay getting back to you. The SSID is saved as a Thanks, |
Hey Nick, No worries man, if I expected an instant response - I'd expect to be paying a support contract too :D It's been a while since I've done any of this, I'll see if I can figure something out/read up on it and get back to you. I suspect the Chinese characters in UTF8 just aren't being coerced neatly to a char. Best Lee |
My guess would have been that Simplified Chinese is Unicode, and i have not idea how that would look in UTF8. The ESP8266/32 only supports connecting Wifi with a The AP POST converts the SSID from json string to That is at least a place to start looking. |
After reading very quickly on the subject, it seems 1 Simplified Chinese character gets encoded as 9 If this is the case, I have an idea that might solve this issue. A friend of mine pointed out that EEPROM is not necessarily the only place to put this, we also have the SPIFFS that we can store info in, perhaps in json. There would be a slight performance hit here (json conversion) but it would probably not be that bad. It would be possible to make an interface for this storage allowing us to swap the implementation out, and have the current EEPROM version, and the SPIFFS version which would be more flexible for this kind of use case. |
Seemed a bit better this time...
Note that for this test I actually set up my phone as a pair AP (as renaming my home wifi is quite disruptive so keen to avoid), so I'm not that surprised that the connection timed out. Hope this helps! |
Yes, that confirms my suspicion that it is a space problem. The best plan is to abstract the storage of WiFi and config, allowing us to store them on the SPIFFS. I will try to start getting this going this week. Sorry, this is not a use case I even considered when writing the library. Hope to have a fix for you soonish. |
Got everything up and running with the demo, then entered an SSID with Simplified Chinese Characters in it (喝一点儿茶)
Got the following from the serial monitor
The text was updated successfully, but these errors were encountered: