native2ascii命令
2016-04-29 08:26
155 查看
native2ascii命令
native2ascii的命令行的命名格式:
native2ascii -[options] [inputfile [outputfile]]
说明:
-[options]:表示命令开关,有两个选项可供选择
-reverse:将Unicode编码转为本地或者指定编码,不指定编码情况下,将转为本地编码。
-encoding encoding_name:转换为指定编码,encoding_name为编码名称。
新建一个文件,名称为message.txt,保存在D盘。
内容为:我们信仰Java
在DOS环境下,进入D盘。输入以下native2ascii命令:
将汉字转换成Unicode编码,输出到文件message_Unicode.txt。
native2ascii message.txt message_Unicode.txt
将汉字转换成Unicode编码,输出到控制台。
native2ascii message.txt
将汉字转换成ISO8859-1编码,输出到文件message_ISO8859-1.txt。
native2ascii -encoding ISO8859-1 message.txt message_ISO8859-1.txt
将message_Unicode.txt转换为本地编码,输出到文件message_native.txt。
native2ascii -reverse message_Unicode.txt message_native.txt
将message_ISO8859-1.txt转换为本地编码,输出到文件message_I_native.txt。
native2ascii -reverse -encoding ISO8859-1 message_ISO8859-1.txt message_I_native.txt
native2ascii的命令行的命名格式:
native2ascii -[options] [inputfile [outputfile]]
说明:
-[options]:表示命令开关,有两个选项可供选择
-reverse:将Unicode编码转为本地或者指定编码,不指定编码情况下,将转为本地编码。
-encoding encoding_name:转换为指定编码,encoding_name为编码名称。
新建一个文件,名称为message.txt,保存在D盘。
内容为:我们信仰Java
在DOS环境下,进入D盘。输入以下native2ascii命令:
将汉字转换成Unicode编码,输出到文件message_Unicode.txt。
native2ascii message.txt message_Unicode.txt
将汉字转换成Unicode编码,输出到控制台。
native2ascii message.txt
将汉字转换成ISO8859-1编码,输出到文件message_ISO8859-1.txt。
native2ascii -encoding ISO8859-1 message.txt message_ISO8859-1.txt
将message_Unicode.txt转换为本地编码,输出到文件message_native.txt。
native2ascii -reverse message_Unicode.txt message_native.txt
将message_ISO8859-1.txt转换为本地编码,输出到文件message_I_native.txt。
native2ascii -reverse -encoding ISO8859-1 message_ISO8859-1.txt message_I_native.txt
相关文章推荐
- 在Java里处理文件的技巧
- native2ascii命令
- 利用编辑距离(Edit Distance)计算两个字符串的相似度
- 利用编辑距离(Edit Distance)计算两个字符串的相似度
- 二叉树的创建与遍历
- java基础练习题
- UVA 11178 Audiophobia 几何基础
- 罗森伯格应邀主讲CDCC百家大讲堂38期
- CodeForces 663A Rebus
- CodeForces 663A Rebus
- [二分]取余运算||快速幂
- CodeForces 664A Complicated GCD
- Hibernate5.1.0的hello word
- CodeForces 664A Complicated GCD
- iOS toolchain for bash on windows
- iOS 框架整体介绍
- iOS开法--block篇
- 罗森伯格助力杭州G20峰会保电工程-清江智能化变电站
- 我的第一份工作-----大半年的求职总结
- ZOJ 3941 Kpop Music Party(省赛, 贪心)