Samba Character Set-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Samba in RHEL4 already supports Chinese characters. After creating a shared directory, access the shared directory from the windows system and create a Chinese file name and directory. It is normal to view the shared directory in windows without garbled characters, but with secure crt connected to the linux host to view it is garbled, the solution is that linux locale is set to zh_CN.utf-8 export LANG = zh_CN.utf-8, and then modify the sercure crt settings. Options-Session Options-Appearance: Fonts is set to a Chinese font, such as. Character is set to UTF-8, if still in linux terminal garbled, then exit secure crt, re-open, general normal.
Although the above method is good, it is very troublesome, so I found another method.
Modify/etc/samba/smb. conf
Add unix charset = cp936 to the [global] Field
Restart samba, and the Chinese directory created in windows will be normal in secure crt.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service