5 Replies Latest reply on Oct 23, 2007 10:23 AM by jvence

    JBoss Portal why not support chinese?

    6fish

      when i use chinese word in my page,
      the chinese word is "??????????"

        • 1. Re: JBoss Portal why not support chinese?
          theute

          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

            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

              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

                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.

                • 5. Re: JBoss Portal why not support chinese?
                  jvence

                   

                  "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=
                  ???? ????