This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Mount a CIFS share with different encoding

CIFS/SMB network sharing.
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Mount a CIFS share with different encoding

Post by MikeMac »

I'd like to use RSYNC to network folder with Dune mediaplayer. For this I am mounting CIFS share at Dune as local folder

There is HOWTO http://wiki.nas4free.org/doku.php?id=faq:0056 How do I mount/map a CIFS/SMB/SAMBA/Windows share/shared folder on my NAS4Free server?
Everyting works fine if filenames are latin letters and digits. But I am Russian, and we regretelly have a few different encodings, most widely used - win cp 1251

Obvious rsolution is -E key, like

mount_smbfs -N -E UTF-8:cp1251 //GUEST@DUNE/DUNE /mnt/Dune

But this does not work at nas4free due to absence of iconv. pkg_add - is not a solution, due to there is dependance for pearl, quite big package.
Is it possible in the future to build nas4free with option WITH_ICONV at src.conf, as per, f.e. http://svnweb.freebsd.org/base/head/lib ... rev=233625

Best regards, Mike

PS Thanks to nas4free developers for marvelous product!

Onichan
Advanced User
Advanced User
Posts: 238
Joined: 04 Jul 2012 21:41
Status: Offline

Re: Mount a CIFS share with different encoding

Post by Onichan »

Well under Services|CIFS/SMB|Settings it has an option to set the Dos charset to CP1251. I assume that would be what you need. Though it seems like you are mounting using linux so I guess you would need to change the Unix charset and I think it would be 8859-15.
Are you sure you need to change it? I am using the default CP437 and UTF-8 yet I have many files with Japanese characters and Arabic characters that work just fine browsing through windows explorer and opening them.

User avatar
alexey123
Moderator
Moderator
Posts: 1469
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: Mount a CIFS share with different encoding

Post by alexey123 »

I tried compile rsync WITH_ICONV, but it not help for encoding from another languages.
Use english names
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

User avatar
MikeMac
Forum Moderator
Forum Moderator
Posts: 429
Joined: 07 Oct 2012 23:12
Location: Moscow, Russia
Contact:
Status: Offline

Re: Mount a CIFS share with different encoding

Post by MikeMac »

>I tried compile rsync WITH_ICONV, but it not help for encoding from another languages.
of course not :) It is not about rsync, it is about libiconv

Code: Select all

Welcome to NAS4Free!nas4free:~# pkg_add -r libiconv
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/amd64/packages-9.0-release/Latest/libiconv.tbz... Done.
nas4free:~# mkdir /mnt/HMS
nas4free:~# mount_smbfs -N -E UTF-8:cp866 //GUEST@HMS/TEST /mnt/HMS
Warning: no cfg file(s) found.
nas4free:~# ls /mnt/HMS
English                 Новая папка
In case if Russian name is not readable, I had attached screenshot

You could see, after libiconv installaion everything OK with encodig. Now any app, include rsync, could work with readable national letters

It is nas4free embedded 249 build on virtual machine. HMS is winXP machine, test - shared folder on the one
You do not have the required permissions to view the files attached to this post.

Post Reply

Return to “CIFS/SMB (Samba)”