- 论坛徽章:
- 9
|
回复 6# alexei99
从文件来看,你的编码是GBK,我帮你转了下码你再导入试试。下面是我对你的文件的操作:- [cenalulu@localhost 2012-12-02]$ more aaaa.word
- ����,����,�Ա�,���
- 1,����,��,20
- 2,����,��,20
- 3,����,��,20
- 4,alex,man,25
- [cenalulu@localhost 2012-12-02]$ file -bi aaaa.word
- text/plain; charset=iso-8859-1
- [cenalulu@localhost 2012-12-02]$ iconv -f gbk -t utf8 aaaa.word
- 编号,姓名,性别,年龄
- 1,张三,男,20
- 2,李四,男,20
- 3,王五,男,20
- 4,alex,man,25
- [cenalulu@localhost 2012-12-02]$ iconv -f gbk -t utf8 aaaa.word > aaaa.word.new
- [cenalulu@localhost 2012-12-02]$
复制代码 |
|