You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for your new firmware, it can handle UTF-8 char properly, but it has new problem about garbling. my codes is the following:
@websvr.resource('/config/wifi/aplist', method='GET')
async def connect_to_ap(data):
gc.collect()
sta = network.WLAN(network.STA_IF)
sta.active(True)
ap_list = sta.scan()
resp = json.dumps({
"msg": "OK",
"result": [
{"ssid": x[0].decode(), "authmode": x[4], "rssi": x[3]}
for x in ap_list
]
})
for s in resp:
yield s
the above codes works correctly if values of resp['result'] contains no UTF-8 chars, otherwise the front end would receive unreadable code, like this:
I guess this due to Content-Type field should not be 'application/json;charset=utf-8' in Response-Header, but I can't debug it..
The text was updated successfully, but these errors were encountered:
Hi, thanks for your new firmware, it can handle UTF-8 char properly, but it has new problem about garbling. my codes is the following:
the above codes works correctly if values of resp['result'] contains no UTF-8 chars, otherwise the front end would receive unreadable code, like this:

I guess this due to Content-Type field should not be 'application/json;charset=utf-8' in Response-Header, but I can't debug it..
The text was updated successfully, but these errors were encountered: