[jboss-user] [JBoss Portal] - Re: JBoss Portal why not support chinese?
chenjingjing@hotmail.com
do-not-reply at jboss.com
Thu Sep 13 02:25:10 EDT 2007
I change all codes like "content.setBytes(sContent.getBytes());" in "CMSAdminPortlet.java" file as following. it works fine for me.
| try {
| content.setBytes(sContent.getBytes("UTF-8"));
| } catch (UnsupportedEncodingException e) {
| content.setBytes(sContent.getBytes());
| }
|
there is also a problem in CMSPortlet.java which I mension in http://www.jboss.com/index.html?module=bb&op=viewtopic&t=118304. in this case I don't know how to deal. I just compromised by adding
| if (file == null)
| {
| fileGet = CMSService.getCommandFactory().createFileGetCommand(path, new Locale("zh"));
| file = (File)CMSService.execute(fileGet);
| }
|
in doView method.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4083779#4083779
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4083779
More information about the jboss-user
mailing list