由于Windows中TXT默认采用gbk编码,而Linux下默认采用UTF8编码。因此,中文显示乱码。如果需要转换显示,可以采用iconv工具。下面是iconv的说明文档:
ICONV(1) Debian GNU/Linux ICONV(1)
NAME
iconv - Convert encoding of given files from one encoding to another
SYNOPSIS
iconv -f encoding [-t encoding] [inputfile]...
DESCRIPTION
The iconv program converts the encoding of characters in inputfile, or
from the standard input if no filename is specified, from one coded
character set to another. The result is written to standard output
unless otherwise specified by the --output option.
--from-code, -f encoding
Convert characters from encoding.
--to-code, -t encoding
Convert characters to encoding. If not specified the e