How to handle Samba garbled characters

Source: Internet
Author: User
How to handle Garbled text in Samba-Linux Enterprise Application-Linux server application information. If garbled characters occur when your client connects to the shared folder, put the following code in the global configuration of the smb. conf file, or put it in the sharing option! It is recommended that you add the configuration in the global configuration. You need to modify smb. conf according to the configuration of locales.

(1) simplified:

If locales settings are zh_CH.UTF-8, add the following code:

Displays charset = UTF-8
Unix charset = UTF-8
Dos charset = UTF-8

(2) simplified:

If the locales is set to zh_CN.GBK zh_CH.gb2312, add the following code:

Displays charset = UTF-8
Unix charset = UTF-8
Dos charset = UTF-8

(3) Traditional Chinese:

Displays charset = UTF-8
Unix charset = UTF-8
Dos charset = UTF-8

Restart samba:

# Service smb restart

Success! Chinese characters can be displayed normally.
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.