mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 23:20:22 +00:00
Convert non ASCII ssid for display to utf8
Convert hex bytes to binary. Assumes utf8 encoding
This commit is contained in:
parent
5cbb785529
commit
634eb72760
1 changed files with 9 additions and 0 deletions
|
@ -190,3 +190,12 @@ function reinitializeWPA($force)
|
|||
return $result;
|
||||
}
|
||||
|
||||
/*
|
||||
* Replace escaped bytes (hex) by binary - assume UTF8 encoding
|
||||
*
|
||||
* @param string $ssid
|
||||
*/
|
||||
function ssid2utf8($ssid) {
|
||||
return evalHexSequence($ssid);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue