Solve the problem of garbled characters in the Chinese directory after the Debian system mounts smb through cifs
//$smb_server/share /mnt/nas_share cifs credentials=/root/.smbcredentials,iocharset=utf8 0 0
By default, smb is mounted through the above command, but when viewing the file directory, Chinese characters are garbled
Solution to the problem:
Debian system installation uses Chinese character set
The first step is to make relevant updates first:sudo apt-get update
Step 2: Install the Chinese font library for the debian system:sudo apt-get install ttf-wqy-microhei
Step 3: We can change the system Chinese display command is:sudo dpkg-reconfigure locales
Use the space bar to select the "zhCN" option to ensure that " zhCN.UTF-8" is selected, and at the same time select "zh_CN.UTF-8 " in the local font library
After reboot, reboot
Then check the relevant file directory has successfully displayed Chinese:
reference: