天天看點

Source Insight 中文注釋為亂碼解決辦法(完美解決,一鍵搞定)

我從網上查了一堆解決辦法,但是都是2017年以前的解決方案,并且都是針對于source insight 3.5及以下版本的,目前SI軟體版本都到4.0了,應該有新方法出現了。

——————————————————————————————————————

幹貨:Source Insight 4 的解決辦法(source insight 3.5 及以下版本就到其他地方看看吧)

【解決辦法】:

單個檔案亂碼解決辦法:

      菜單欄中【File】 > 【Reload As Encoding...】 > 【Chinese Simplified (GB18030)】 > 選擇後,點選load,問題解決!!!

所有檔案亂碼解決辦法:

    我的了解,在做下面操作的時候,先設定,然後關閉所有打開的檔案,然後再打開檔案即可

    菜單欄中 【Options】 > 【Preferences】 >File标簽中,最下面的“Default encod­ing” :改成System Default(Windows ANSI) 或者Chinese Simplified(GB2312) CP:936(簡體中文的都可以選),點選确定,問題解決!!!

——————————————————————————————————————

下面談談我找到解決方法的過程,沒時間的直接跳過!

找解決辦法,折騰了一下午,結果,世界上簡單的辦法不是在别處,而是藏在自身,而我卻沒有發現。最後通過官方文檔,終于撥雲見霧,莫名的感動,給 Source Dynamics點個贊。

錯誤現象:注釋亂碼,查了好多,肯定是編碼顯示問題:

現象如圖所示:

Source Insight 中文注釋為亂碼解決辦法(完美解決,一鍵搞定)

網上找了很多解決辦法,都是很多年前的了,解決起來太麻煩。最後我在這裡官方支援文章中找到了答案:

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 

官方網站支援文檔截圖如下:

Source Insight 中文注釋為亂碼解決辦法(完美解決,一鍵搞定)

具體解決辦法:菜單欄中【File】->【Reload As Encoding...】->【Chinese Simplified (GB18030)】->選擇後,點選load,問題解決!!!

Source Insight 中文注釋為亂碼解決辦法(完美解決,一鍵搞定)
Source Insight 中文注釋為亂碼解決辦法(完美解決,一鍵搞定)

有網友評論說,“這種方法每次隻對目前的單個檔案生效,請問您知道統一修改所有檔案的方法嗎?”,我已經在前面解決辦法中添加上了

感謝你的回報。

解決辦法來源如下圖所示:

Source Insight 中文注釋為亂碼解決辦法(完美解決,一鍵搞定)

都讓你看了,你還不點個贊!

給你一個福利:sourceinsight40118.zip (解壓密碼:BjarneCpp666)

繼續閱讀