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
- ubuntu14.04中 gedit 注释能显示中文,而source insight中显示为乱码的解决办法
- ubuntu14.04中 gedit 注释能显示中文,而source insight中显示为乱码的解决办法
- source Insight中文注释显示乱码解决办法
- 在VIM中完美显示source insight的中文
- Source Insight中文注释为乱码
- source insight 中文注释为乱码解决
- source insight 中文注释为乱码解决
- source insight 中文注释为乱码解决
- source insight 中文注释为乱码解决
- 解决source insight 3.5 中文显示为乱码问题
- Ubuntu14.04桌面版gedit中文乱码解决办法
- TeamTalk在Source Insight显示中文乱码
- Source Insight显示中文乱码解决方法
- vim和gedit显示中文乱码的解决办法
- Ubuntu 12.04 gedit windows 中文显示乱码问题的解决办法
- Ubuntu 12.04 gedit windows 中文显示乱码问题的解决办法
- gedit显示中文乱码
- ubuntu14.04 gedit显示GB2312中文编码
- 深入理解 Spring 事务原理
- CListView常用用法
- centos中使用tomcat部署特别慢的问题
- 项目前的准备
- 插件开发之360 DroidPlugin源码分析(五)Service预注册占坑
- ubuntu14.04中 gedit 注释能显示中文,而source insight中显示为乱码的解决办法
- 在Ubuntu Server 14.04上编译Android 6.0源码
- initialization of 'nret' is skipped by 'default' label
- 两种种样式的简单介绍
- 编写一个程序,可以一直接收键盘字符,如果是小写字符就输出对应的大写字符,如果接收的是大写字符,就输出对应的小写字符,如果是数字不输出.
- poj3469(最小割)
- Oracle select语句执行顺序
- Nginx配置文件详细说明
- 随着窗口大小的改变调整控件的位置和大小