Just for you……

你若给我一片蓝天,我必给自己一双翅膀……

导航

2013年4月1日 #

Linux Eclipse 中文乱码 解决方法

摘要: 中文乱码解决方案:1:windows-->preferences-->General-->Workspace-->选择Text file encoding中的Other,选择GBK,如果没有直接输入GBK,点击“Apply”2:windows-->preferences-->General-->Content Types-->点击右边窗口中的Text,选择Java Source File,在Default encoding【在窗口最下边,如果看不到,拖动滑块下拉即可看到】中输入GBK,点击OK。 阅读全文

posted @ 2013-04-01 19:51 duboway 阅读(456) 评论(0) 推荐(0) 编辑

Ubuntu gedit 中文乱码解决方法

摘要: 有些在Windows下能够打开的txt文件在Ubuntu下用gedit打开时,中文显示是乱码,这是因为编码方式不同造成的。Windows下默认txt文件的编码方式是GBK,而Ubuntu下的gedit默认没有对GBK的支持。解决方法如下:在终端运行gconf-editor,(如果没有安装用“sudo apt-get install dconf-tools”安装。)在apps -> gedit-2 -> preference -> encodings里面有个auto-detect,在它的前面加上GBK或GB18030就OK了。PS:使用的时候,我的preference的目录下面 阅读全文

posted @ 2013-04-01 19:42 duboway 阅读(384) 评论(0) 推荐(0) 编辑