Arabic support

75 views
Skip to first unread message

Wit

unread,
Jan 12, 2024, 4:11:26 PM1/12/24
to OpenWISP
Hi, 
is there is a chance to add arabic language support for openwisp? 

i already added support to openwrt for arabic language. 
and i can use arabic SSIDs 

but i cannot configure it through openwisp
i must manually change the ssid on openwrt device. 

regards. 
Muhammed.

harish divase

unread,
Jan 13, 2024, 1:35:37 AM1/13/24
to open...@googlegroups.com
No

--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/92a9e628-df4f-4b85-8fe2-3ba52669cb5dn%40googlegroups.com.

harish divase

unread,
Jan 13, 2024, 1:35:58 AM1/13/24
to open...@googlegroups.com

👍

harish divase reacted via Gmail

Federico Capoano

unread,
Jan 13, 2024, 1:48:46 PM1/13/24
to open...@googlegroups.com
Hi Muhammed,

If you mean translations, at the moment we don't have the bandwidth nor the necessary funding or structure to maintain translations of the openwisp admin.
If you mean being able to write Arabic SSIDs only, that's a technical matter I am not familiar with, if it's not possible we should see what is causing the problem and look whether a solution is possible, in that case we need more details, eg: what steps can reproduce the problem?

Mohammed Ismail

unread,
Jan 14, 2024, 8:28:01 AM1/14/24
to open...@googlegroups.com
Hi Federico,
I mean being able to write Arabic SSIDs only. I know the translation is massive. 
I think it is an encoding issue. 

see if i configure an Arabic SSID in openwrt device.
this would be in the /etc/config/wireless 
`option ssid 'مقهى الأصدقاء'`
Arabic letters could be read if you download the file to your computer and open it with notepad++ for instance. 
or if you `cat /etc/config/wireless' from an openwrt device. 

but if you try to open the file from a program like WinSCP 
you will see the line like this > 
option ssid 'مقهى الأصدقاء'

Now we get back to openwisp. If I enter arabic ssid  in a configuration file or configuration template variable 
it tries to update the device but the device refuses and gives a configuration error. 

i think it is trying to config SSID as 'مقهى الأصدقاء'


--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.

Federico Capoano

unread,
Jan 16, 2024, 5:33:17 PM1/16/24
to open...@googlegroups.com
Sounds like a bug.
I'd try to replicate this issue in the netjsonconfig library: https://github.com/openwisp/netjsonconfig
If it can be replicated we can open an issue.

Best regards
Federico Capoano
OpenWISP OÜ
Harjumaa, Tallinn, Sepapaja tn 6, 15551
VAT: EE101989729


Mohammed Ismail

unread,
Feb 18, 2025, 3:39:52 AM2/18/25
to open...@googlegroups.com
Hi Federico,

Have you had a chance to look this over yet?

regards. 
Muhammed.

Federico Capoano (nemesisdesign)

unread,
Feb 19, 2025, 3:57:42 PM2/19/25
to OpenWISP
This project thrives on the participation of users and contributors.
I encourage you to roll up your sleeves and contribute to get the issue fixed.

Best regards
Federico

Mohammed Ismail

unread,
Feb 20, 2025, 5:11:17 PM2/20/25
to open...@googlegroups.com
Hi Federico, 
Sure I can help . 
Can you tell me where to look for encoding for input values in configuration for templates and devices ? 
image.png
if it is UTF-8 ? 

Does  netjason use UTF-8 ? 
Is the web  placeholder parse input in UTF-8 ? 
Which part of the system should I start with ? 

any guidance would be appreciated

best regards 
Muhammad 

Mohammed Ismail

unread,
Feb 20, 2025, 5:49:33 PM2/20/25
to open...@googlegroups.com
Well i did some checks fast,
i inspected the configuration backup that failed . 
i tested SSID with 'محمد'

Although the result is  option ssid 'محم�
so i opened it with hex editor 
image.png

analysis says 
  • Expected SSID: The SSID should be محمد, which in UTF-8 encoding consists of the following Unicode characters:
    • م (U+0645) → UTF-8: D8 85

    • ح (U+062D) → UTF-8: D8 AD

    • م (U+0645) → UTF-8: D8 85

    • د (U+062F) → UTF-8: D8 AF

    • So, the full UTF-8 sequence for محمد should be: D8 85 D8 AD D8 85 D8 AF.


  • Actual Data in Hex Editor:
    • You provided the hex string 27 D9 85 D8 AD D9 85 D8, which translates as follows:
      • 27 = ' (single quote, likely the opening quote of the SSID value).

      • D9 85 = م (U+0645, correct for the first م).

      • D8 AD = ح (U+062D, correct for ح).

      • D9 85 = م (U+0645, correct for the second م).

      • D8 (incomplete, truncated or corrupted) — the sequence ends prematurely, missing the final د (U+062F, which should be D8 AF).


    • This indicates the UTF-8 data is partially correct but truncated or corrupted, missing the last character (د).
  • In Visual Studio Code, it shows محم�, where the (replacement character) indicates an invalid or incomplete UTF-8 sequence, confirming truncation or corruption.

>> 
this might give you a hint to guide me where to look further 

best regards 
Muhammed 

On Wed, Feb 19, 2025 at 10:57 PM Federico Capoano (nemesisdesign) <federico...@gmail.com> wrote:

Mohammed Ismail

unread,
Feb 20, 2025, 7:48:20 PM2/20/25
to open...@googlegroups.com
Ok now after searching for possible cause in code .. i could not manage to find where to look 

So i thought, what if i added a space after arabic ssid name ? 
and serprizely it appeared full arabic name in wireless option ssid but missing ' >> `option ssid 'محمد`
so i added one but it did not work , it needed 2 of ' after the arabic word to be parsed correct 

so i thought what about longer name or perhaps 2 words ? 
`محمدين وحسنين` well be good 
and the lost letters got more and more 
to make this ssid works i added 10 letters of  ' to be exactly as this >      محمدين وحسنين''''''''''
image.png
image.png

image.png
image.png
image.png
i hope this helps 

best regards 
Muhammad 

On Wed, Feb 19, 2025 at 10:57 PM Federico Capoano (nemesisdesign) <federico...@gmail.com> wrote:

Federico Capoano

unread,
Feb 21, 2025, 8:53:29 AM2/21/25
to open...@googlegroups.com
Thank you for your analysis!

This is the library that generates the configuration:

For other questions related to development topics, I recommend using the dev chat.

Best regards
Federico Capoano

Reply all
Reply to author
Forward
0 new messages