ubuntu14.04中 gedit 注释能显示中文,而source insight中显示为乱码的解决办法

来源:互联网 发布:联通 电信哪个4g网络好 编辑:程序博客网 时间:2024/06/04 18:36

[转载] http://blog.csdn.net/r77683962/article/details/39810157

[转载] http://blog.chinaunix.net/uid-10540984-id-3214137.html


Source Insight中文显示乱码,不支持UTF-8字符编码——所以要使用gedit等工具把它转为GB2312字符编码。
另外还需要在source insight里对comment字体进行设置——宋体、常规、10、Chinese_GB2312


通过gedit“另存为”来字符转码

1.乱码显示情况:



2.用gedit打开文件,并用ctrl+shift+s(另存为),其中charactor coding选为chinese simplified(GB2312);

2.修改个文件名, 并点击save.

3.用source insight打开,看看是不是不是乱码了? - -


4.这个我可搞了好几天,嘿嘿~~~

在Source insight中设置comment的字体

1. Options->Style Properties
2. 在左边Style Name下找到Comment、Comment Right 和 Comment Multi Line.在其右边对应的Font属性框下的
Font Name中选“Pick...” 设置为宋体、常规、10、Chinese_GB2312。确定,退回Style Properties界面,
Size设为10。最后设置Clolors框下Foreground,点“Pick...”选择一种自己喜欢的颜色就OK了。

图1
图2

0 0