找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 1415|回复: 5

我家云挂载win目录,中文显示乱码,怎么修改

[复制链接]
用这个命令挂的sudo mount -t cifs -o username='root',password='ry' //IP/media /srv/wky
挂载成功,但是中文乱码,改成英文没问题
尝试过修改
修改/etc/samba/smb.conf文件如下
[global]
    dos charset = CP936
    unix charset = GB18030
    display charset = GB18030

/etc/default/locale
都不行

还有说改/etc/sysconfig/i18n,没找到在哪里
我的恩山、我的无线 The best wifi forum is right here.
1安装中文字体apt-get install ttf-wqy-microhei。
2,locale查看中文字库是否支持,,不支持就去/etc/locale.gen打开去掉zh_CN.UTF-8前面的#
3,执行update,reboot

点评

执行命令后提示: E: dpkg 被中断,您必须手工运行 ‘dpkg --configure -a’ 解决此问题。 root@Chainedbox:~# dpke --config -a Could not find the database of available applications, run update-command-no  详情 回复 发表于 2020-4-25 20:36
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
dianxin_11 发表于 2020-4-24 23:34
1安装中文字体apt-get install ttf-wqy-microhei。
2,locale查看中文字库是否支持,,不支持就去/etc/loc ...

执行命令后提示:
E: dpkg 被中断,您必须手工运行 ‘dpkg --configure -a’ 解决此问题。
root@Chainedbox:~# dpke --config -a
Could not find the database of available applications, run update-command-not-found as root to fix this
dpke: command not found

搜了一圈,有贴子说碰到此问题:E: dpkg 被中断,您必须手工运行 ‘dpkg --configure -a’
执行下面的命令
sudo rm /var/lib/dpkg/updates/*
sudo apt-get update

sudo apt-get upgrade
这个还没试过,好像要挺长的时间

另:
root@Chainedbox:~# locale
LANG=zh_CN.UTF-8
LANGUAGE=zh_CN.UTF-8
LC_CTYPE="zh_CN.UTF-8"
LC_NUMERIC="zh_CN.UTF-8"
LC_TIME="zh_CN.UTF-8"
LC_COLLATE="zh_CN.UTF-8"
LC_MONETARY="zh_CN.UTF-8"
LC_MESSAGES=en_US.UTF-8
LC_PAPER="zh_CN.UTF-8"
LC_NAME="zh_CN.UTF-8"
LC_ADDRESS="zh_CN.UTF-8"
LC_TELEPHONE="zh_CN.UTF-8"
LC_MEASUREMENT="zh_CN.UTF-8"
LC_IDENTIFICATION="zh_CN.UTF-8"
LC_ALL=

看了locale.gen里面zh_cn.utf-8前面的#号是去掉了的
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

需要执行apt-get update

点评

依然如故,乱码依旧  详情 回复 发表于 2020-4-25 22:59
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
dianxin_11 发表于 2020-4-25 21:16
需要执行apt-get update

依然如故,乱码依旧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

 楼主| | 显示全部楼层
sudo mount -t cifs -o iocharset=utf8,username='t',password='1' //ip/media /srv/w

要加个iocharset=utf8,就好了,留此存证
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-28 16:42

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表