既然生为中国人,就没有什么好抱怨的了,遇到编码的问题,那只有解决它了. 如果经常使用Struts,并做过国际化操作的人来说,对于中文资源文件的处理应该不会感到陌生的.比如下面两个文件,一个是英文的,一个是中文的.对于英文的,一切照常:对于中文的,一般需要用JDK的native2ascii工具进行转换. application_en.properties # Resources for the Hello sample application hello.title=A first Struts
打开eclipse中文字体很小,简直难以辨认.在网上搜索发现这是由于Eclipse 用的字体是 Consolas,显示中文的时候默认太小了.解决方式有两种:一.把字体设置为Courier New 操作步骤:打开Elcipse,点击菜单栏上的“Windows”——点击“Preferences”——点击“Genneral”——点击“Appearance”——点击“Colors and Font”——在右侧框展开“Basic”文件夹--双击“Text Font”——在弹出窗选择“Courier Ne
Installing the language packs Open the install wizard with 'Help' > 'Install new software...' Add the Babel p2 repository: http://download.eclipse.org/technology/babel/update-site/R0.15.1/oxygen Select/install your language pack of choice Restart Ecl