esp32_nat_router icon indicating copy to clipboard operation
esp32_nat_router copied to clipboard

Can not use special character for remote STA

Open victorbw opened this issue 1 year ago • 1 comments

The password field in the initial configuration site does not use special characters correctly.

In this particular case its "+" (plus) which can not be used - haven't tested any other special characters yet.

Passwords without special characters can be used properly.

First assumption was:

  • pages.h: correct charset is missing, in this case <meta charset='UTF-8'>

but this didn't help in my case.

I don't have enough knowledge for testing where the translation of a password could end in a failure.

thank you very much for your project btw!

victorbw avatar Aug 01 '24 12:08 victorbw

the issue seems to lay in the encoding.

the fix is to use percent-encoding (https://en.wikipedia.org/wiki/Percent-encoding) for special characters.

In my case i was using a "+" (plus) in the password.

To set your password via CLI use the percent-encoding, as an example set_sta yourRemoteSTA !somePassword2024%2B

important is %2B has replaced the + (plus).

victorbw avatar Aug 01 '24 12:08 victorbw