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
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to