CentOS 開啟Windows分享的資料檔為亂碼 之解決方法

開啟命令列

1. 開啟 /etc/samba/smb.conf 這個檔案。

開啟編輯說明:
vi /etc/samba/smb.conf

2. 開啟之後,在[global]這一節最後加入三行指令碼:

display charset = UTF-8
unix charset = UTF-8
dos charset = cp950

在[global]這一節,按『o』
複製貼上下面三行
display charset = UTF-8
unix charset = UTF-8
dos charset = cp950
按esc離開輸入狀態, 輸入『:wq』存檔離開vi編輯.

 

3. 重新登入,再進入Windows分享,就可以看到正確的繁體中文.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.