Little-endian UTF-16 Unicode text, with very long lines, with CRLF line terminators
来源:互联网 发布:python社区 知乎 编辑:程序博客网 时间:2024/06/05 12:42
Sometimes you can have the problem that you cannot 'grep' files in Linux, if those files are generated on a Windows station.
If you check the file type, by typing "file [filename]", you can see the following output:
Little-endian UTF-16 Unicode text, with CRLF line terminators
Then you can use the following command to convert the file to utf-8:
iconv -f utf-16 -t utf-8 [filename] > [new_filename]
after that you can stilll convert it to Unix if you want. (dos2unix or fromdos)
原文地址: http://schelstraete.org/index.php/linux/608-convert-little-endian-utf-16-unicode-text-with-crlf-line-terminators
0 0
- Little-endian UTF-16 Unicode text, with very long lines, with CRLF line terminators
- sublime with CRLF line terminators
- 2.20 Displaying Long Lines of Text with UITextView
- ANSI、UTF-8、Unicode(little endian)、Unicode big endian
- UNICODE编码UTF-16 中的Endian(FE FF) 和 Little Endian(FF FE)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- 彻底搞懂字符编码(unicode,mbcs,utf-8,utf-16,utf-32,big endian,little endian...)
- [转]处理文件CRLF line terminators的问题
- 交叉编译
- iOS 百度统计的使用技巧
- 如何(高效)判断数据是否"线性可分"
- 傅立叶分析和小波分析之间的关系? (通俗讲解)
- 面向对象编程(概念)
- Little-endian UTF-16 Unicode text, with very long lines, with CRLF line terminators
- mallet 简析 1
- xcode升级到7.1后运行很慢
- Fragment与Activity通信
- 城市安全
- jquery ui tab 去除outline
- 用NumberPicker实现二联动滚轮选择
- JavaScript实现N个视频的切换
- [总结]软工文档验收