This content has been marked as final.
Show 5 replies
-
1. Re: JBoss Portal why not support chinese?
theute Sep 12, 2007 3:23 AM (in response to 6fish)What page, where and how you got this ?
If the page encoding in the layout, and database are correctly set this should work. -
2. Re: JBoss Portal why not support chinese?
chenjingjing Sep 12, 2007 4:37 AM (in response to 6fish)I found the same problem in CMS. I just change the code a little bit. hope there is nothing more.
-
3. Re: JBoss Portal why not support chinese?
theute Sep 12, 2007 5:12 AM (in response to 6fish)Do you mind providing a patch that would help the others ?
AFAIK, the CMS is now fully supporting any language (after several bug fixes) maybe we left something out. -
4. Re: JBoss Portal why not support chinese?
chenjingjing Sep 13, 2007 2:25 AM (in response to 6fish)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 addingif (file == null) { fileGet = CMSService.getCommandFactory().createFileGetCommand(path, new Locale("zh")); file = (File)CMSService.execute(fileGet); }
in doView method. -
5. Re: JBoss Portal why not support chinese?
jvence Oct 23, 2007 10:23 AM (in response to 6fish)"thomas.heute@jboss.com" wrote:
Do you mind providing a patch that would help the others ?
AFAIK, the CMS is now fully supporting any language (after several bug fixes) maybe we left something out.
I'm having the same problem. Create an arabic file using CMS. And when I paste arabic letters they look good, but once saved everything is converted in to ?????????
Try with the following:
_ASREGISTERED=?? ???? ????? ??? ????? ????? ?????
_BLOCKNICKNAME=??? ????????
_BLOCKPASSWORD=
???? ????