Open Kugeleis opened 12 months ago
try this:
# version 1.9 compatibility
try:
ssid = match.group(1).decode("utf-8").replace("%3F", "?").replace("%26", "&")
password = match.group(2).decode("utf-8").replace("%3F", "?").replace("%26", "&")
except Exception:
ssid = match.group(1).replace("%3F", "?").replace("%26", "&")
password = match.group(2).replace("%3F", "?").replace("%26", "&")
@ebolisa's suggestion has been added as default behavior in the captive portal version of this awesome library
@ebolisa's suggestion has been added as default behavior in the captive portal version of this awesome library
Instead of adding all possible combination of characters, why not adding a simple routine to convert them all:
txt = "%3F,%26"
def decode_html(txt):
dec = json.loads('"' + txt.replace('%', '\\u00') + '"')
return dec
print(decode_html(txt)) --> ? & and etc.
I have a wifi password with
&
in it. WIFIManager is not able to connect to it. Error: