source insight使用6—Source Insight 4.0中文註釋亂碼解決辦法
作者 CodeAllen ,轉載請註明出處
Source Insight 4.0 的中文註釋爲亂碼解決辦法
1、【臨時解決辦法】:
只針對當前文件解決中文亂碼。
菜單欄中【File】->【Reload As Encoding…】->【Chinese Simplified (GB18030)】->選擇後,點擊load,問題解決。
——————————————————————————————————————
2、【徹底解決辦法】:
對所有文件亂碼解決辦法: 我的做法是,在做下面操作的時候,先設置,然後關閉所有打開的文件,然後再打開文件即可 。
菜單欄中 【Options】 > 【Preferences】 >File標籤中,最下面的「Default encoding」 :改成System Default(Windows ANSI) 或者Chinese Simplified(GB2312),徹底解決問題。
具體現象及詳細解決說明:
錯誤現象:註釋亂碼,查了好多,肯定是編碼顯示問題:
現象如圖所示:
網上找了很多解決辦法,都是很多年前的了,解決起來太麻煩。最後我在這裏官方支持文章中找到了答案:
Unfortunately, the code page encoding used in a file is not saved with the file. Therefore, it is possible to open a file assuming the wrong encoding. If you open a file with the wrong encoding, you will probably observe some characters are incorrect or look garbled. You can use the File > Reload As Encoding command to reload the file with the correct encoding.
內容來自這裏Source Insight 4.0
官方網站支持文檔截圖如下:
【臨時解決辦法】:具體解決辦法:菜單欄中【File】->【Reload As Encoding…】->【Chinese Simplified (GB18030)】->選擇後,點擊load,問題解決!!!
有網友評論說,「這種方法每次只對當前的單個文件生效,請問您知道統一修改所有文件的方法嗎?」,我已經在前面解決辦法中添加上了
感謝你的反饋。
解決辦法來源如下圖所示: