首先我們來看看在 Linux 系統中如何檢視檔案的編碼格式,可以在 vim 中使用如下指令檢視:
:set fileencoding
輸出可能是這樣
fileencoding=utf-8
$ iconv -f UTF-8 -t GBK input.file -o output.file
首先我們來看看在 Linux 系統中如何檢視檔案的編碼格式,可以在 vim 中使用如下指令檢視:
:set fileencoding
輸出可能是這樣
fileencoding=utf-8
$ iconv -f UTF-8 -t GBK input.file -o output.file