Ubuntu Eclipse 中文乱码
来源:互联网 发布:win7网络连接图标异常 编辑:程序博客网 时间:2024/05/22 12:38
今天,把windows下的工程导入到了Linux下eclipse中,由于以前的工程代码,都是GBK编码的(Windows下的Eclipse默认会去读取系统的编码,所以Widnwos下的Eclipse的编码为GBK),而Ubuntu默认是不支持GBK编码的。所以,首先我们要先让Ubuntu支持GBK,方法如下:
- 修改/var/lib/locales/supported.d/local文件,在文件中添加zh_CN.GBK GBKzh_CN.GB2312 GB2312
- sudo dpkg-reconfigure --force locales然后在输出的结果中会出现zh_CN.GB2312 donezh_CN.GBK done
这样, Ubuntu就支持GBK编码了, 下面设置eclipse。
首先Windows->Preferences, 然后选择General下面的Workspace. Text fileencoding选择Other GBK, 如果没有GBK的选项, 没关系, 直接输入GBK三个字母, Apply, GBK编码的中文,已经不是乱码了。
本文出自 “立子” 博客,请务必保留此出处http://leaze.blog.51cto.com/83088/195584
- Ubuntu Eclipse 中文乱码
- Ubuntu Eclipse 中文乱码
- ubuntu eclipse 中文乱码
- ubuntu Eclipse 中文乱码
- Ubuntu中Eclipse中文乱码
- ubuntu中eclipse中文乱码问题
- Ubuntu下Eclipse存在中文乱码
- Ubuntu下Eclipse存在中文乱码
- Ubuntu下Eclipse中文乱码解决
- Ubuntu下Eclipse中文乱码解决
- Ubuntu下Eclipse中文乱码解决
- Ubuntu下Eclipse中文乱码解决方案
- Ubuntu下Eclipse中文乱码解决
- Ubuntu下Eclipse中文乱码解决
- Ubuntu下Eclipse中文乱码解决
- Ubuntu下Eclipse中文乱码解决
- ubuntu下eclipse中文乱码问题
- Ubuntu下Eclipse中文乱码解决
- 设置Netbeans的界面语言为英文
- 修改Android中strings.xml文件, 动态改变数据
- 程序员从初级到中级10个秘诀
- 麦克阿瑟将军为儿子的祷告词
- C#访问约束问题
- Ubuntu Eclipse 中文乱码
- 消息机制 模拟点击指定窗体按钮
- 数据库运维原则
- omap3530启动过程
- Windows编程(7)|SDK显示位图
- 美国麦克阿瑟将军在国会大厦的告别演讲(Farewell address to Congress)
- 约束
- qt Qtabidget 窗口头部设想 linux搜索字符串命令
- Android框架结构