Troubles with Cyrillic alphabet on file shares (ksmbd)

Cyrillic encoding does not work correctly. Files with Cyrillic in the name are not displayed in Windows Explorer. They are displayed in Explorer of other programs, but with crooked symbols instead of letters and do not open in viewers. They give errors. File names usually consist of Cyrillic and Latin. If you remove the Cyrillic characters, the files are displayed and opened. Also, on the GL.iNet GL-MT3000 router, the router's file system is automatically mounted in public access, at least in read mode.
Default settings.

you've obviously already searched the forum, got the hits, and tried the solutions?

Obviously! If the same files with the same names are displayed correctly in SAMBA Win 11, but incorrectly in Samba OpenWrt... What wrong conclusions can I draw?
I have not changed any settings. The SAMBA documentation states that UTF-8 encoding has long been used as a de facto standard. But in this case, it is false. If there is a solution, please reply. If you just want to chat, I do not have time.
Thanks for understanding!

what does Samba Win 11 mean, file sharing between two win11 boxes ?

were the "broken" files written from a win11 box to the openwrt hosted share, or did you mount an USB storage device, with the fs containing the files ?

what's the file system on the storage device ?

you're not providing enough details.

NTFS, and it is correctly displayed on the router when mounted. I repeat. If the file names consist of Cyrillic and Latin, then the Win11 browser does not see them through SAMBA OpenWrt. If you remove the Cyrillic from the file name, leaving only the Latin, which was already in the file name, then everything is displayed and works correctly. Through Android and other programs in Win11, the same files are displayed with incorrect characters in the names, in the form of "??????" instead of Cyrillic characters, Latin ones are displayed correctly. But they do not open, do not play, etc. In general, they do not work. The most important thing is that they are not visible at all in Windows Explorer, although the disk space is occupied.
P.S.
I am writing this for GL.iNet GL-MT6000. On the GL.Inet GL-MT3000 model, file names are displayed correctly, but the router's file system is automatically mounted there, albeit in read-only mode, but still. I made the settings according to WIKI. The wsdd2 package is installed, as WIKI recommends. On GL.Inet GL-MT3000, many settings do not work correctly at all via LUCI. I don't know how this is related, but something is wrong here.

Samba Win 11 is what a shared resource is in Win 11. This is SAMBA. What I see on the network from a computer on the Win 11 OS. The same files copied to a USB SSD and connected to a router with OpenWrt are not displayed correctly and do not work. I mean the Gl.inet GL-MT6000 router. Also, to display SAMBA files in Win 11, I must disable not only the mandatory password protection through the Win11 registry, but also the mandatory SAMBA certificates. Without this, it does not work. It says - the network path was not found. But I repeat. The same files, with the same names in SAMBA with the created Win11 tools are displayed and work correctly. The problem is clearly in OpenWrt, or in the add-ons to OpenWrt.
I hope I explained it correctly and clearly.
English is not my strong point. Sorry.

Have you installed kmod-nls-utf8 in order to have the UTF-8 support?
And are you using the old samba or the newer ksmbd ?

Installed. I use ksmbd.

Please note that another router with the same package displays Cyrillic correctly, but there are other glitches. Automatic mounting of the router file system and double mounting of SHARE. The first with the name as it is seen in the system, for example sda1 and the second as I named it in the mount point settings.

I was wrong and misled! This also does not work on GL.iNet GL-MT3000. I took the user's word for it, but it does not!!! It does not work as and GL.iNet MT6000. I connected the same SSD drive and got the same non-working situation. But I found out why the router's file system is mounted. It's all about the ksmbd-hotplug package. It should automatically mount connected devices, but it does not do this at all. It mounts the router's file system, but does not mount newly connected drives. In general, useless nonsense.
No working solution found!!!

After recording over the network from Windows 11 to an SSD connected to a router, the file name was displayed correctly and the file was read, but after connecting this disk directly to a computer with Windows 11, the name of this file was not read. As my research showed, the glitch is in the package itself. It tries to reproduce any encoding in Windows-1252. The default standard is UTF-8, but it does not work here. For English letters it does not matter, but for Cyrillic it is death. This problem cannot be solved by settings. Please move this topic to the developer topic, where it was originally created. Perhaps the developers will pay attention to this and fix it.

you'll probably get more attention if you post in Ksmbd (Samba3/4 alternative, ex cifsd/smbd) package support thread.

1 Like

I wrote it, maybe they will pay attention and fix it.
Thanks!

you should really keep the discussion in the ksmbd thread, instead of moving it here, seems more relevant.

This is all my English))).
It was conceived as something that I had already written there and given a link to this topic.

you're also missing the point ....
but that's OK, I guess.

1 Like