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
Inspect the returned list of networks. The network with the SSID Schöpfgefäß will appear with its SSID property displayed as Sch?pfgef??.
Solutions
Our current workaround involves patching the module after installation. Specifically, we remove the following line (line 3): LC_ALL: 'en_US.UTF-8',
from the file node_modules/node-wifi/src/env.js.
This line is part of the environment configuration object. Removing it prevents the environment from being forcibly set to en_US.UTF-8, allowing the system's default locale (C.UTF-8 in our case) to correctly handle umlaut characters in SSIDs.
Potential long-term solution:
To improve flexibility, this hardcoded locale setting could be made configurable via an option in the module's API. This would allow users to adapt the environment settings to their specific locale requirements without needing to patch the code manually.
The text was updated successfully, but these errors were encountered:
Expected behavior
When scanning for networks, SSIDs containing umlaut characters (ä, ö, ü, ß) should be displayed correctly without any modifications.
Current behavior
All umlaut characters (ä, ö, ü, ß) in SSIDs are replaced by question marks (?).
Which are the affected features
Which is your operating system?
Linux
Environment
Operating System: Debian GNU/Linux 12 (Bookworm)
Node.js Version: v20.12.0
Locale Settings (output of locale):
Version of node-wifi
v2.0.16
Steps to Reproduce
Schöpfgefäß
is available and visible to the device.wifi.scan()
as described in the node-wifi Getting Started Guide.Schöpfgefäß
will appear with itsSSID
property displayed asSch?pfgef??
.Solutions
Our current workaround involves patching the module after installation. Specifically, we remove the following line (line 3):
LC_ALL: 'en_US.UTF-8',
from the file
node_modules/node-wifi/src/env.js
.This line is part of the environment configuration object. Removing it prevents the environment from being forcibly set to
en_US.UTF-8
, allowing the system's default locale (C.UTF-8
in our case) to correctly handle umlaut characters in SSIDs.Potential long-term solution:
To improve flexibility, this hardcoded locale setting could be made configurable via an option in the module's API. This would allow users to adapt the environment settings to their specific locale requirements without needing to patch the code manually.
The text was updated successfully, but these errors were encountered: