1.功能作用
转换给定文件的编码
2.位置
/usr/bin/iconv
3.格式用法
iconv [选项...]
[文件...]
4.主要参数
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
输入/输出格式规范:
-f, --from-code=名称 原始文本编码
-t, --to-code=名称 输出编码
信息:
-l, --list 列举所有已知的字符集
输出控制:
-c 从输出中忽略无效的字符
-o, --output=FILE 输出文件
-s, --silent 关闭警告
--verbose 打印进度信息
-?, --help 给出该系统求助列表
--usage 给出简要的用法信息
-V, --version 打印程序版本号
|
5.应用实例
1、显示系统支持的字符集iconv -l
2、将utf-8编码转化为gb2312iconv -f utf-8 -t gb2312 software_.txt > software_asserts.txt
3、编码转化,忽略无效字符iconv -c -f utf-8 -t gb2312 software_.txt > software_asserts.txt
1.功能作用
更新locale语言
2.位置
/usr/sbin/update-locale
3.格式用法
update-locale [OPTIONS] [LANG=locale] [LC_NUMERIC=locale] ...
4.主要参数
1
2
3
4
5
|
--help 显示帮助信息 --reset ignore variables defined in the locale file --locale-file=FILE file containing locale variables (Default: /etc/default/locale) --no-checks do not perform sanity checks on locale variables |
5.应用实例
1、更新中文UTF的本地环境sudo locale-gen
zh_CN.UTF-8
sudo update-locale LANG=zh_CN.UTF-8
1.功能作用
生成需要的locale文件
2.位置
/usr/sbin/locale-gen
3.格式用法
locale-gen
[OPTIONS]
4.主要参数
1
2
3
4
5
作者: darkly
抱歉!评论已关闭. 书签本站推荐 |