使用source insight 4.0打開工程後發現代碼中文註釋存在亂碼,原因爲源碼文件的編碼類型導致,解決辦法如下:
- 單文件
File ---> Reload As Encoding ---> Chinese Simplified (GB2312) ---> Load 即可
選擇其他的Chinese Simplified 類型也行。
- 項目文件
step1:
Ctrl+Shift+w 關閉當前打開的所有文件
step2 :
Options ---> Preferences ---> Files ---> Default encoding ---> Chinese Simplified (GB2312) CP:936 ---> 確定即可