1 Reply Latest reply: May 4, 2010 9:15 PM by 843810 RSS

    Problem Reading chinese word from resourcebundle

    843810
      Hi Friends,

      I am trying to read chinese charaters from the resourcebundle.

      I created properties files using chinese characters with Chinese(PRC) fonts and saved as unicode format.
      "greeting=哦四爷"
      I changed to unicode format using native2ascii tool
      native2ascii -encoding unicode language_zh1_CN1.properties language_zh_CN.properties
      then I copied the created file in my properties folder and saved as ANSI format.

      from the java code I read the properties file using

      String s=new String(resource.getString("greeting").getBytes("unicode"),"GB18030");

      I am showing the result in a flex alert box.But its not showing correctly.Its showing some chinese characters but not the one which I typed.

      Is it the problem in java side or is it from flex side.