参考:https://www.cnblogs.com/mithrilon/archive/2018/06/03/9082449.html
http://blog.chinaunix.net/uid-25266990-id-2853835.html
1、如果发现Linux的文件不是utf8格式的文件,首先需要检测文件编码格式,在Centos7安装enca
,需要联网的说。
1 [root@slaver1 ~]# yum install enca
2 已加载插件:fastestmirror, langpacks
3 Loading mirror speeds from cached hostfile
4 * base: mirror.bit.edu.cn
5 * epel: mirrors.tuna.tsinghua.edu.cn
6 * extras: mirror.bit.edu.cn
7 * updates: mirrors.tuna.tsinghua.edu.cn
8 正在解决依赖关系
9 --> 正在检查事务
10 ---> 软件包 enca.x86_64.0.1.19-1.el7 将被 安装
11 --> 解决依赖关系完成
12
13 依赖关系解决
14
15 ================================================================================================================================================================================================================================
16 Package 架构 版本 源 大小
17 ================================================================================================================================================================================================================================
18 正在安装:
19 enca x86_64 1.19-1.el7 epel 107 k
20
21 事务概要
22 ================================================================================================================================================================================================================================
23 安装 1 软件包
24
25 总下载量:107 k
26 安装大小:311 k
27 Is this ok [y/d/N]: y
28 Downloading packages:
29 enca-1.19-1.el7.x86_64.rpm | 107 kB 00:00:03
30 Running transaction check
31 Running transaction test
32 Transaction test succeeded
33 Running transaction
34 正在安装 : enca-1.19-1.el7.x86_64 1/1
35 验证中 : enca-1.19-1.el7.x86_64