来源: 最后更新:23-09-03 12:19:55
1、查看文件字符编码
###using file command###
[root@ipython report]# file --mime-encoding analysis.csv
analysis.csv: utf-8
###using vim command###
[root@ipython report]# vim analysis.csv
:set fileencoding
fileencoding=utf-8
2、设置文件字符编码
####using iconv command####
syntax:
iconv -f old_encoding -t new_encoding filename
###example###
[root@ipython report]# iconv -f utf-8 -t gbk analysis.csv > new_analysis.csv
###using vim command###
:set fileencoding=gbk
:wq!
澳媒揭露西方媒体歪曲报道中国真相:“它们不会告诉不想让我们听到的消息”
monster monster墨镜《Monster》歌手:Lady GagaDont call me Gaga别叫我GagaIve never
卢拉与普京通电话重申:支持有俄乌冲突双方都参与的和谈 “替父追债被判寻衅滋事案”最新进展:检方因证据不足撤诉,法院准许 “目击者称以军乔装成哈马斯和平民,围观也可能被杀” 2024广州天河来穗人员积分入学资格审查结果