[omniORB] wstring interoperability

zhb dragzhb@163.net
Mon Aug 26 07:14:01 2002


--Boundary-=_WrmfNdjHjOxNnFlkhkAsmBKLfvmS
Content-Type: text/plain; charset="gb2312"
Content-Transfer-Encoding: 8bit

Hi All:
    I have a problem of wstring ,I cann't get correctly form of wstring interoperability between java and omniORB4
test at : redhat Linux 7.3 ,gcc 2.96 , jdk1.4.0 ,JacORB 1.4 ,omniORB4 beta2

When say wstring between omniORB(client) and omniORB (server),the wstring show correctly.
but when I say wstring between omniORB (server) and java-clinet (jdk1.4.0 java IDL and jacORB1.4),It is incorrectly.

java -> omniORB    incorrectly (ASCII is correctly,other code ,eg. chinese is incorrectly)

omniORB - >   java  incorrectly(ASCII is correctly,other code ,eg. chinese is incorrectly)

java   < --------- > java is correctly

omniORB <---------------> omniORB is correctly

I think occuing this error because of UCS-4(omniORB4) ----> UTF-16(java)  and UTF-16 (java) ---> UCS-4 (omniORB) are incorrectly!

I hnow something can do that translate :
http://www-106.ibm.com/developerworks/linux/library/l-linuni.html
http://www-106.ibm.com/developerworks/unicode/library/u-encode.html
http://oss.software.ibm.com/icu/

but I don't hnow how to do that in omniORB4
can you help me?

regards

zhang hai bin
dragzhb@163.net





--Boundary-=_WrmfNdjHjOxNnFlkhkAsmBKLfvmS
Content-Type: text/html; charset="gb2312"
Content-Transfer-Encoding: 8bit

Hi All:<br>    I have a problem of wstring ,I cann't get correctly form of wstring interoperability between java and omniORB4<br>test at : redhat Linux 7.3 ,gcc 2.96 , jdk1.4.0 ,JacORB 1.4 ,omniORB4 beta2<br><br>When say wstring between omniORB(client) and omniORB (server),the wstring show correctly.<br>but when I say wstring between omniORB (server) and java-clinet (jdk1.4.0 java IDL and jacORB1.4),It is incorrectly.<br><br>java -&gt; omniORB    incorrectly (ASCII is correctly,other code ,eg. chinese is incorrectly)<br><br>omniORB - &gt;   java  incorrectly(ASCII is correctly,other code ,eg. chinese is incorrectly)<br><br>java   &lt; --------- &gt; java is correctly<br><br>omniORB &lt;---------------&gt; omniORB is correctly<br><br>I think occuing this error because of UCS-4(omniORB4) ----&gt; UTF-16(java)  and UTF-16 (java) ---&gt; UCS-4 (omniORB) are incorrectly!<br><br>I hnow something can do that translate :<br>http://www-106.ibm.com/developerworks/linux/library/l-linuni.html<br>http://www-106.ibm.com/developerworks/unicode/library/u-encode.html<br>http://oss.software.ibm.com/icu/<br><br>but I don't hnow how to do that in omniORB4<br>can you help me?<br><br>regards<br><br>zhang hai bin<br>dragzhb@163.net<br><br><br><br><br><br><br> 
<table width="600" border="0" cellpadding="4">
  <tr> 
    <td width="100%" STYLE="font-size: 9pt">
      ·<font color="red">TOM短信推出最新服务 “短信收藏夹”</font><br>
 将短信发送到800+自己手机号码,即可将短信息存进收藏夹。<br>
 即使是再多的短信也不愁没处放了!详情请看<a href="http://www.163.net/sms/save/" target="_blank">http://www.163.net/sms/save/</a><br><br>


      ·<font color="#CC0000">企业商务先机 - 企业邮箱促销优惠</font> 详情请看<a href="http://mail.163.net" target="_blank">http://mail.163.net</a><br>
      ·[每日一笑] <a href="http://joke.tom.com/" target="_blank">高尔夫球场的蚂蚁:高尔夫球手偶然将球击到了一个蚁山上。他用力挥杆击球,但没打中,却打死了很多蚂蚁……</a><br>
      ·[每日星闻] <a href="http://astro.tom.com/" target="_blank">最花心的、最纯爱的、最具诱惑的、最爱倒追的、上司最爱的、人缘最好的、小男生最爱的、老男人最爱的……女性星座血型</a>
    </td>
  </tr>
</table>
<p>&nbsp; </p>
<TABLE WIDTH="550" CELLPADDING="2" CELLSPACING="1" BORDER="0" BORDERCOLORLIGHT="CC9900" BORDERCOLORDARK="CC9900" BGCOLOR="#FFCC00" BORDERCOLOR="#FFCC00">
  <TR BORDERCOLOR="#CC9900" BGCOLOR="#FEF0BA" ALIGN="CENTER"> 
    <TD colspan="2" BGCOLOR="#FEF0BA" STYLE="font-size: 9pt"><A HREF="http://vip.163.net" TARGET="_blank"><FONT COLOR="#CC0000">163.net 
      收费邮箱</FONT></A></TD>
    <TD colspan="2" BGCOLOR="#A2D0FF" STYLE="font-size: 9pt"><a href="http://vip.163.net/fax/fax.htm" target="_blank"><font color="#CC0000">163.net 
      传真易</font></a></TD>
  </TR>
  <TR BORDERCOLOR="#CC9900" BGCOLOR="#FEF0BA" ALIGN="CENTER"> 
    <TD BGCOLOR="#FFFFCC" WIDTH="25%" STYLE="font-size: 9pt">白金版<BR> <FONT FACE="Times New Roman, Times, serif">(</FONT><FONT FACE="Times New Roman, Times, serif" COLOR="#CC0000"><B>100 
      M</B></FONT> ,可发<FONT FACE="Times New Roman, Times, serif">10M</FONT>附件)</TD>
    <TD BGCOLOR="#FFFFCC" WIDTH="25%" STYLE="font-size: 9pt">黄金版<BR> <FONT FACE="Times New Roman, Times, serif">(<B><FONT COLOR="#CC0000">60 
      M</FONT></B></FONT> ,可发<FONT FACE="Times New Roman, Times, serif">10M</FONT>附件)</TD>
    <TD BGCOLOR="#DDEEFF" WIDTH="25%" STYLE="font-size: 9pt"><a href="http://vip.163.net/fax/fax_to_email.htm" target="_blank"><font color="#CC0000">Fax 
      to Email</font></a><br>
      用邮箱接收传真 </TD>
    <TD BGCOLOR="#DDEEFF" WIDTH="25%" STYLE="font-size: 9pt"><a href="http://vip.163.net/fax/email_to_fax.htm" target="_blank"><font color="#CC0000">Email 
      to Fax</font></a><br>
      用邮箱发送传真 </TD>
  </TR>
  <TR BORDERCOLOR="#CC9900" BGCOLOR="#FEF0BA" ALIGN="CENTER"> 
    <TD WIDTH="25%" BGCOLOR="#FFFFCC" STYLE="font-size: 9pt"><a href="http://vip.163.net/buy/buy_300.htm" target="_blank"><font color="#CC0000">300元/年</font></a><br>
      (送1200条邮件短信) </TD>
    <TD WIDTH="25%" BGCOLOR="#FFFFCC" STYLE="font-size: 9pt"><a href="http://vip.163.net/buy/buy_180.htm" target="_blank"><font color="#CC0000">180元/年<br>
      </font></a>(送720条邮件短信)</TD>
    <TD WIDTH="25%" BGCOLOR="#DDEEFF" STYLE="font-size: 9pt">25元/月<br>
      (不限接收传真次数) </TD>
    <TD WIDTH="25%" BGCOLOR="#DDEEFF" STYLE="font-size: 9pt">最低预付200元<br>
      (费用比长途更便宜)</TD>
  </TR>
  <TR BORDERCOLOR="#CC9900" BGCOLOR="#FEF0BA" ALIGN="CENTER"> 
    <TD colspan="2" BGCOLOR="#FFFFCC" STYLE="font-size: 9pt">内置瑞星杀毒 | 垃圾邮件过滤 | 
      支持手机邮件<BR></TD>
    <TD colspan="2" BGCOLOR="#DDEEFF" STYLE="font-size: 9pt">简单易用 | 省纸省时 | 群发功能 
      | 语音留言</TD>
  </TR>
</TABLE>
<br>

--Boundary-=_WrmfNdjHjOxNnFlkhkAsmBKLfvmS--