⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 java与cc++之间通过jni传递中文字符串 - 爱睇资讯 - 博客园.htm

📁 java调用JNI中解决中文符串问题
💻 HTM
📖 第 1 页 / 共 5 页
字号:
  <TR id=AjaxHolder_PostComment_trEmail>
    <TD>Email</TD>
    <TD colSpan=2><INPUT class=commenttb id=AjaxHolder_PostComment_tbEmail 
      name=AjaxHolder$PostComment$tbEmail>(博主才能看到)<SPAN 
      id=AjaxHolder_PostComment_revContactMail 
      style="VISIBILITY: hidden; COLOR: red">邮件地址无效</SPAN></TD></TR>
  <TR>
    <TD align=left colSpan=3>
      <TABLE class=CommentForm id=AjaxHolder_PostComment_tbCaptchaImage 
      cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
        <TR>
          <TD colSpan=3><SPAN 
            id=AjaxHolder_PostComment_Requiredfieldvalidator4 
            style="DISPLAY: none; COLOR: red">请输入验证码</SPAN> <SPAN 
            id=AjaxHolder_PostComment_lblImage 
            style="FONT-WEIGHT: bold; COLOR: red"></SPAN></TD></TR>
        <TR>
          <TD width=56>验证码</TD>
          <TD colSpan=2><INPUT id=AjaxHolder_PostComment_CodeNumberTextBox 
            style="WIDTH: 100px" 
            name=AjaxHolder$PostComment$CodeNumberTextBox>*&nbsp;&nbsp;<IMG 
            src="Java与CC++之间通过JNI传递中文字符串 - 爱睇资讯 - 博客园.files/JpegImage.jpg"><A 
            id=AjaxHolder_PostComment_lkbChangeCode 
            href="javascript:__doPostBack('AjaxHolder$PostComment$lkbChangeCode','')">看不清,换一张</A> 
            [<A 
            href="http://www.cnblogs.com/login.aspx?ReturnUrl=/rookieport/archive/2005/10/18/257154.html">登录</A>][<A 
            href="http://www.cnblogs.com/RequireRegister.aspx">注册</A>]</TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD style="TEXT-ALIGN: left" colSpan=3>
      <DIV style="WIDTH: 600px">
      <DIV class=divPostCommentBox>内容(请不要发表任何与政治相关的内容) <SPAN 
      id=AjaxHolder_PostComment_RequiredFieldValidator3 
      style="VISIBILITY: hidden; COLOR: red">请输入评论内容</SPAN><BR><TEXTAREA class=commentTextBox id=AjaxHolder_PostComment_tbComment onkeydown="ctlent(event,'AjaxHolder_PostComment_tbComment')" name=AjaxHolder$PostComment$tbComment></TEXTAREA> 
      </DIV>
      <DIV class=CommentBoxNav><A tabIndex=-1 href="http://www.cnblogs.com/" 
      target=_blank>网站首页</A><BR><BR><A tabIndex=-1 
      href="http://news.cnblogs.com/" target=_blank>新闻频道</A><BR><BR><A 
      tabIndex=-1 href="http://space.cnblogs.com/" 
      target=_blank>社区</A><BR><BR><A tabIndex=-1 
      href="http://space.cnblogs.com/group.htm" target=_blank>小组</A><BR><BR><A 
      tabIndex=-1 href="http://space.cnblogs.com/q" 
      target=_blank>博问</A><BR><BR><A tabIndex=-1 href="http://wz.cnblogs.com/" 
      target=_blank>网摘</A><BR><BR><A tabIndex=-1 href="http://job.cnblogs.com/" 
      target=_blank>人才</A><BR><BR><A tabIndex=-1 href="http://zzk.cnblogs.com/" 
      target=_blank>找找看</A><BR><BR></DIV></DIV></TD></TR>
  <TR>
    <TD colSpan=3><SPAN id=AjaxHolder_PostComment_Message 
      style="COLOR: red"></SPAN></TD></TR>
  <TR>
    <TD colSpan=3><INPUT id=AjaxHolder_PostComment_chkRemember tabIndex=-1 
      type=checkbox CHECKED name=AjaxHolder$PostComment$chkRemember><LABEL 
      for=AjaxHolder_PostComment_chkRemember>Remember Me?</LABEL></TD></TR>
  <TR>
    <TD height=23><INPUT class=commentButton id=AjaxHolder_PostComment_btnSubmit onclick="TempSave('AjaxHolder_PostComment_tbComment');WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;AjaxHolder$PostComment$btnSubmit&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" type=submit value=提交 name=AjaxHolder$PostComment$btnSubmit> 
    </TD>
    <TD colSpan=2 height=23>&nbsp; <A id=AjaxHolder_PostComment_lnkLogin 
      href="http://www.cnblogs.com/login.aspx?ReturnURL=http://www.cnblogs.com/rookieport/archive/2005/10/18/257154.html&amp;SourceURL=/rookieport/archive/2005/10/18/257154.html">登录</A>&nbsp;&nbsp;<A 
      id=AjaxHolder_PostComment_linkLoginComment 
      onclick="if(document.getElementById('AjaxHolder_PostComment_tbComment').value != '') return confirm('未提交的评论内容将会丢失, 你真的要进入高级评论吗?');" 
      href="http://www.cnblogs.com/rookieport/archive/2005/10/18/257154.html?login=1#Post">使用高级评论</A>&nbsp;&nbsp;<A 
      href="http://www.cnblogs.com/RequireRegister.aspx">新用户注册</A>&nbsp;&nbsp;<A 
      href="http://www.cnblogs.com/rookieport/archive/2005/10/18/257154.html#Top">返回页首</A>&nbsp;&nbsp;<A 
      id=AjaxHolder_PostComment_lbRestore 
      onclick="Restore('AjaxHolder_PostComment_tbComment'); return false;" 
      href="http://www.cnblogs.com/rookieport/archive/2005/10/18/257154.html#Post">恢复上次提交</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    </TD></TR>
  <TR>
    <TD colSpan=3><LABEL class=CtrlEnter>[使用Ctrl+Enter键可以直接提交]</LABEL></TD></TR>
  <TR>
    <TD colSpan=3></TD></TR>
  <TR>
    <TD colSpan=3></TD></TR>
  <TR>
    <TD colSpan=3></TD></TR>
  <TR>
    <TD colSpan=3><A href="http://www.cnblogs.com/search.aspx" 
      target=_blank>Google站内搜索</A></TD></TR>
  <TR>
    <TD colSpan=3><A href="http://zzk.cnblogs.com/" 
target=_blank>找找看</A></TD></TR>
  <TR>
    <TD colSpan=3><A 
      href="http://www.cnblogs.com/cmt/archive/2009/01/15/1376617.html" 
      target=_blank><SPAN style="COLOR: red">.NET技术大会期待您的参加</SPAN></A></TD></TR>
  <TR>
    <TD colSpan=3 height=5></TD></TR>
  <TR>
    <TD colSpan=3><A href="http://a4.yeshj.com/rd/20852/" target=_blank><IMG 
      style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" 
      src="Java与CC++之间通过JNI传递中文字符串 - 爱睇资讯 - 博客园.files/YU-D-S1P-20852_44.gif"></A><BR><A 
      href="http://www.china-pub.com/itbook/" target=_blank>China-pub 
      计算机图书网上专卖店!6.5万品种 2-8折!</A><BR><A 
      href="http://www.china-pub.com/static/zt_mb/zt_huodong_07_secondhandbook.asp?filename=jsj_hzold_081029" 
      target=_blank>近千种 9-95 新二手计算图书火热销售中!</A><BR><A 
      href="http://booksubject.cnblogs.com/DesignPatterns/" 
      target=_blank>开发者征途系统新作:《设计模式——基于C#的工程化实现及扩展》</A> </TD></TR>
  <TR>
    <TD colSpan=3><BR>
      <DIV id=relative_posts><B>相关文章:</B><BR>
      <SCRIPT language=javascript 
      src="Java与CC++之间通过JNI传递中文字符串 - 爱睇资讯 - 博客园.files/RCS.htm" 
      type=text/javascript charset=utf-8></SCRIPT>
      </DIV></TD></TR>
  <TR>
    <TD colSpan=3>
      <DIV id=div_a4_ads><BR><B>相关链接:</B>
      <SCRIPT type=text/javascript>
	        var title = document.title;
	        document.write("<div id=\"a4_ads_output\">");
	        document.write("<script type='text/javascript' src='http://a4.yeshj.com/adwords/EN017?num=7&title="+ encodeURIComponent(title) +"&tag="+ encodeURIComponent(GetMeta("keywords")) +"'></scri"+"pt>");
	        document.write("</div>");
	        </SCRIPT>
       </DIV></TD></TR>
  <TR>
    <TD colSpan=3></TD></TR>
  <TR>
    <TD colSpan=3>
      <DIV id=AjaxHolder_PostComment_RelativePosts1_divRelativePosts 
      style="MARGIN-TOP: 2px"><BR><B>所属分类的其他文章:</B><BR><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2009/01/04/1367955.html">应用HTMLParser解释操作HTML内容</A><BR></SPAN><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2007/04/10/706958.html">使用Axis,在webservice的服务器端如何取到客户端的IP地址</A><BR></SPAN><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2006/10/30/544343.html">OC4J例程jcademo补充</A><BR></SPAN><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2006/10/26/540518.html">JCA,SOA,EAI</A><BR></SPAN><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2006/10/18/532220.html">Java中的ZIP标准</A><BR></SPAN><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2006/06/07/419848.html">浅谈AIX环境下的Java性能调优</A><BR></SPAN><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2006/02/11/328745.html">Java实现压缩一个目录下所有图片文件</A><BR></SPAN><SPAN 
      style="DISPLAY: none; LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2005/10/18/257154.html">Java与C\C++之间通过JNI传递中文字符串</A><BR></SPAN><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2005/06/08/170072.html">JAXP-DOM验证XML</A><BR></SPAN><SPAN 
      style="LIST-STYLE-TYPE: none"><A 
      href="http://www.cnblogs.com/rookieport/archive/2005/06/08/170064.html">JAXP-DOM解释XML最清晰的程序代码</A><BR></SPAN></DIV>
      <DIV class=itnews><BR><B>最新IT新闻:</B><BR><A 
      href="http://news.cnblogs.com/n/44461/" target=_blank>Lifehacker: Google 
      Notebook 没了我们该去哪里?</A><BR><A href="http://news.cnblogs.com/n/44460/" 
      target=_blank>专访谷歌图标幕后设计师:黄正穆</A><BR><A 
      href="http://news.cnblogs.com/n/44459/" target=_blank>Firefox 3.1 Beta 
      3推迟到下月初</A><BR><A href="http://news.cnblogs.com/n/44458/" 
      target=_blank>Google放弃多项服务 不再接受视频上传</A><BR><A 
      href="http://news.cnblogs.com/n/44457/" target=_blank>20款Windows 7 
      Beta官方主题美图赏</A><BR></DIV></TD></TR>
  <TR>
    <TD colSpan=3 height=5>&nbsp;</TD></TR>
  <TR>
    <TD colSpan=3 height=5></TD></TR>
  <TR>
    <TD colSpan=3 height=1></TD></TR>
  <TR>
    <TD colSpan=3></TD></TR>
  <TR>
    <TD colSpan=3></TD></TR></TBODY></TABLE></DIV>
<DIV id=AjaxHolder_PostComment_ValidationSummary1 
style="DISPLAY: none; COLOR: red"></DIV></DIV>
<SCRIPT language=javascript>

function GetQuote(id)
{
    //www.cnblogs.com.ICommentService.GetCommentText(id,SetQuote);
    BlogServer.WebService.AjaxWS.GetComment(id,SetQuote);
}

 function SetQuote(result)
{
    document.getElementById('AjaxHolder_PostComment_tbComment').value+= ("--引用--------------------------------------------------\n"+result+"\n--------------------------------------------------------\n");
    document.getElementById('AjaxHolder_PostComment_tbComment').focus(); 
}

function Favorite(entryID,title,url,element)
{
    document.getElementById(element.id).innerHTML = "<span style='color:red'>正在收藏...</span>";
    BlogServer.WebService.AjaxWS.AddToFavorites(entryID,title,url,OnFavoriteSuccess);
    document.getElementById(element.id).removeAttribute("href");
    document.getElementById(element.id).removeAttribute("onclick");
}

function OnFavoriteSuccess(result)
{
    if(result == "请先登录")
    {
        window.location.href = "../../../../../login.aspx?ReturnUrl=" + window.location.href;
    }
    else
    {
        var returnstr = result.split(",");
        var id = "lnkFavorite"+returnstr[0];
        document.getElementById(id).innerHTML = "<span style='color:red'>" + returnstr[1] + "</span>";
    }
}

function DelComment(id,element)
{
    if(confirm("确认要删除该评论吗?"))
    {
        document.getElementById(element.id).innerHTML = "<span style='color:red'>正在删除...</span>";
        BlogServer.WebService.AjaxWS.DelComment(id,del_comment_callback);
    }
    return false;
}

function del_comment_callback(response)
{
    __doPostBack('AjaxHolder$PostComment$refreshList','');
}
</SCRIPT>
</DIV>
<DIV id=leftcontent>
<DIV id=leftcontentcontainer><!--done-->
<DIV class=newsItem><A 
href="http://zcomcdl.zcominc.com/union/ZcomMagSubscribe-200-11426.exe"><IMG 
alt=电子杂志精品 src="Java与CC++之间通过JNI传递中文字符串 - 爱睇资讯 - 博客园.files/zcom2.gif" 
border=0></A> </DIV><BR>
<TABLE class=Cal id=Calendar1_entryCal title=Calendar 
style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px; BORDER-COLLAPSE: collapse" 
cellSpacing=0 cellPadding=0 border=0>
  <TBODY>
  <TR>
    <TD style="BACKGROUND-COLOR: transparent" colSpan=7>
      <TABLE class=CalTitle style="WIDTH: 100%; BORDER-COLLAPSE: collapse" 
      cellSpacing=0 border=0>
        <TBODY>
        <TR>
          <TD class=CalNextPrev style="WIDTH: 15%"><A 
            title="Go to the previous month" style="COLOR: black" 

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -