看板 Linux 關於我們 聯絡資訊
小弟手邊有一台 freebsd 的機器 最近想要mount 一台windows 2012 分享出來的「中文」目錄 一開始是直接去mount_smbfs 目錄名稱 結果都會出現找不到路徑的錯誤 後來發現似乎 mount_smbfs 不能直接掛載中文目錄 於是我在這台2012上,建立了一個英文的目錄,建立分享 然後再把這幾個中文目錄複製進來 mount 這個英文目錄,OK了,可是看底下的中文目錄會是亂碼 看了一下說明,可以指定locale 可是不管我指定 zh_TW.Big5 還是 zh_TW.UTF-8 看到的都是亂碼 mount_smbfs -L zh_TW.Big5 -I 192.168.10.218 '//chchang@nas-218/NAS-218' /218/mm Password: root@ds:/root # ls /218/mm ] root@ds:/root # root@ds:/root # umount /218/mm root@ds:/root # mount_smbfs -L zh_TW.UTF-8 -I 192.168.10.218 '//chchang@nas-218/NAS-218' /218/mm Password: root@ds:/root # ls /218/mm ?]??? ??? root@ds:/root # 都是亂碼,只是長得不一樣... 本機的locale 設定是這樣 root@ds:/218/mm # locale LANG=zh_TW.Big5 LC_CTYPE="zh_TW.UTF-8" LC_COLLATE="zh_TW.UTF-8" LC_TIME="zh_TW.UTF-8" LC_NUMERIC="zh_TW.UTF-8" LC_MONETARY="zh_TW.UTF-8" LC_MESSAGES="zh_TW.UTF-8" LC_ALL=zh_TW.UTF-8 請問我還能怎麼下指令去把中文目錄給MOUNT進來啊? -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 128.199.78.155 ※ 文章網址: https://www.ptt.cc/bbs/Linux/M.1436861902.A.A11.html ※ 編輯: chang0206 (128.199.78.155), 07/14/2015 16:18:45
lantw44: 剛才測試 加了 -E UTF-8:UTF-8 好像就好了 07/14 22:14
chang0206: 真的!!!感謝樓上指導! 07/15 11:07