方法一、 日文亂碼可嘗試在編輯畫面輸入

:e ++enc=euc

:e ++enc=sjis

2  

3  

方法二、 終端機調整成適當編碼

1  

 

方法三、.vimrc檔案中加入以下兩行

set encoding=utf-8
set fileencodings=ucs-bom,iso-2022-jp-3,iso-2022-jp,eucjp-ms,euc-jisx0213,eu    c-jp,sjis,cp932,utf-8   
 
編碼應該是ECU-JP但是在vi 內轉換以下是沒有效果的。
:e ++enc=euc-jp
:e ++enc=eucjp-ms

arrow
arrow
    文章標籤
    亂碼 linux terminal 日文
    全站熱搜

    S 發表在 痞客邦 留言(0) 人氣()