LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   samba file share in multi coding (https://www.linuxquestions.org/questions/linux-software-2/samba-file-share-in-multi-coding-362704/)

chungchungip 09-12-2005 01:01 PM

samba file share in multi coding
 
Hi all,
I'm setting up a samba with redhat 8.0 with samba 2.5.0.
I want a share can save files or directory in tranditional chinese and simplifed chinese which like NT Server or Windows 2K Server.
I have tested tanditional chinese can save. But same time save simplifed chinese is not work. What can I do ?


Thank you !

foo_bar_foo 09-12-2005 02:44 PM

i wrote a text editor once
http://www.kde-apps.org/content/show.php?content=16492
that has under "Save As" a choice for GBK and Big5
it should work correctly and as far as i know Samba should not interfear
if you mean file names however you have to issue a different mount command
something like
mount -t smbfs -o username=blah,password=blah,codepage=blah,iocharset=blah

wish i knew more
i think NTFS writes all it's filenames as UTF-16

chungchungip 09-12-2005 08:43 PM

thanks.

I want the samba share like NTFS. Does Samba support UTF-16 in samba 2.5.0?

foo_bar_foo 09-12-2005 10:50 PM

i think so
on the windows machine open the DOS prompt and type
chcp
it will return something like
Active Code Page: xxx

so then put (if you put it in /etc/fstab) something like
adjust as needed
Code:

//server/share /mnt/point smbfs auto,users,uid=500,gid=users,iocharset=utf16,codepage=cpxxx,credentials=/etc/samba/smbpasswd 0 0
or to use mount like above
Code:

mount -t smbfs -o username=xxx,password=xxx,codepage=cpxxx,iocharset=utf16 //server/share /mnt/point
see if that works
if it complains about utf16 try utf8 cause it might be doing some translating using the codepage ?

chungchungip 09-13-2005 09:43 AM

Can i add code to smb.conf?
which code should I use?


Thanks


All times are GMT -5. The time now is 05:34 PM.