<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0062)http://www.cnweblog.com/fly2700/archive/2010/05/10/311355.html -->
<HTML><HEAD id=Head><TITLE>ZeroC ICE C#客户端 C++服务端 参数中包含有中文的string出错的解决方法 - 海阔天空 张翼飞翔 - 博客生活</TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META id=metaKeywords name=keywords
content="ZeroC ICE C#客户端 C++服务端 参数中包含有中文的string出错的解决方法">
<META name="rtmp 协议" content="rtmp 协议 C++ 代码 学习 流媒体"><LINK id=MainCss
rel=stylesheet type=text/css
href="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/style.css"><LINK
id=RSSLink title=RSS rel=alternate type=application/rss+xml
href="http://www.cnweblog.com/fly2700/rss.aspx">
<META name=GENERATOR content="MSHTML 8.00.7601.17824"></HEAD>
<BODY>
<FORM id=Form1 onsubmit="javascript:return WebForm_OnSubmit();" method=post
name=Form1 action=311355.html>
<DIV><INPUT id=__EVENTTARGET type=hidden name=__EVENTTARGET> <INPUT
id=__EVENTARGUMENT type=hidden name=__EVENTARGUMENT> <INPUT
id=" __VIEWSTATE" type=hidden name=__VIEWSTATE> </DIV>
<SCRIPT type=text/javascript>
//<![CDATA[
var theForm = document.forms['Form1'];
if (!theForm) {
theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
theForm.__EVENTTARGET.value = eventTarget;
theForm.__EVENTARGUMENT.value = eventArgument;
theForm.submit();
}
}
//]]>
</SCRIPT>
<SCRIPT type=text/javascript
src="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/WebResource.axd"></SCRIPT>
<SCRIPT language=JavaScript>
function ctlent(evt,id)
{
if(evt.ctrlKey && evt.keyCode == 13)
{
try
{
TempSave(id);
}
catch(ex)
{
}
finally
{
__doPostBack('AjaxHolder$PostComment$btnSubmit','')
}
}
}</SCRIPT>
<SCRIPT language=JavaScript>function SetReplyAuhor(author){document.getElementById('AjaxHolder_PostComment_tbComment').value+="@"+author+"\n";document.getElementById('AjaxHolder_PostComment_tbComment').focus();return false}</SCRIPT>
<SCRIPT type=text/javascript
src="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/ScriptResource.axd"></SCRIPT>
<SCRIPT type=text/javascript
src="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/ScriptResource(1).axd"></SCRIPT>
<SCRIPT type=text/javascript
src="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/ScriptResource(2).axd"></SCRIPT>
<SCRIPT type=text/javascript>
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</SCRIPT>
C++ rtmp ZeroC ICE
<TABLE class=Framework cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD>
<DIV id=top>
<H1><A id=Header1_HeaderTitle class=headermaintitle
href="http://www.cnweblog.com/fly2700/">海阔天空 张翼飞翔</A></H1>
<DIV id=subtitle>我的学习日记</DIV></DIV>
<DIV id=sub>
<DIV class=BlogStats>随笔 - 65, 文章 - 2, 评论 - 87, 引用 -
0</DIV></DIV></TD></TR></TBODY></TABLE>
<TABLE class=Framework cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD class=LeftCell rowSpan=2>
<DIV id=leftmenu>数据加载中…… </DIV></TD>
<TD class=MainCell>
<DIV id=main>
<DIV class=post>
<H2><A id=viewpost1_TitleUrl
href="http://www.cnweblog.com/fly2700/archive/2010/05/10/311355.html">ZeroC
ICE C#客户端 C++服务端 参数中包含有中文的string出错的解决方法</A> </H2>
<DIV class=postbody><FONT style="BACKGROUND-COLOR: #ffffff" size=3>
<P><BR><SPAN style="BACKGROUND-COLOR: #ffffff"
twffan="done"><STRONG>现象:</STRONG>
<BR>使用ICE做开发,C++的服务端,C#的客户端,如果返回的string参数中包含有中文,则C#客户端会抛异常。异常如下:<BR></SPAN></P>
<P> </P>
<DIV
style="BORDER-BOTTOM: #cccccc 1px solid; BORDER-LEFT: #cccccc 1px solid; PADDING-BOTTOM: 4px; BACKGROUND-COLOR: #eeeeee; PADDING-LEFT: 4px; WIDTH: 98%; PADDING-RIGHT: 5px; FONT-SIZE: 13px; WORD-BREAK: break-all; BORDER-TOP: #cccccc 1px solid; BORDER-RIGHT: #cccccc 1px solid; PADDING-TOP: 4px"><IMG
alt="" align=top
src="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/None.gif">
<SPAN style="COLOR: #000000">Ice.MarshalException<BR><IMG alt="" align=top
src="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/None.gif"> reason </SPAN>
<SPAN style="COLOR: #000000">=</SPAN> <SPAN
style="COLOR: #000000"> </SPAN> <SPAN style="COLOR: #000000">"</SPAN>
<SPAN style="COLOR: #000000">Invalid UTF8 string</SPAN> <SPAN
style="COLOR: #000000">"</SPAN> <SPAN style="COLOR: #000000"><BR><IMG
alt="" align=top
src="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/None.gif"> 在 IceInternal.ProxyFactory.checkRetryAfterException(LocalException ex, Reference </SPAN>
<SPAN style="COLOR: #0000ff">ref</SPAN> <SPAN
style="COLOR: #000000">, OutgoingAsync outAsync, Int32</SPAN>
<SPAN style="COLOR: #000000">&</SPAN> <SPAN
style="COLOR: #000000"> cnt) 位置 d:\builds\distbuilds\release\Ice</SPAN>
<SPAN style="COLOR: #000000">-</SPAN> <SPAN
style="COLOR: #000000">3.3</SPAN> <SPAN style="COLOR: #000000">.</SPAN>
<SPAN style="COLOR: #000000">0</SPAN> <SPAN
style="COLOR: #000000">\cs\src\Ice\ProxyFactory.cs:行号 </SPAN> <SPAN
style="COLOR: #000000">183</SPAN> <SPAN style="COLOR: #000000"><BR><IMG
alt="" align=top
src="ZeroC%20ICE%20C%23客户端%20C++服务端%20参数中包含有中文的string出错的解决方法%20-%20海阔天空%20张翼飞翔%20-%20博客生活_files/None.gif"> 在 Ice.ObjectPrxHelperBase.handleException__(ObjectDel_ </SPAN>
<SPAN style="COLOR: #0000ff">delegate</SPAN> <SPAN
style="COLOR: #000000">, LocalException ex, OutgoingAsync outAsync, Int32</SPAN>
<SPAN style="COLOR: #000000">&</SPAN> <SPAN
style="COLOR: #000000"> cnt) 位置 d:\builds\distbuilds\release\Ice</SPAN>
<SPAN style="COLOR: #000000">-</SPAN> <SPAN
style="COLOR: #000000">3.3</SPAN> <SPAN style="COLOR: #000000">.</SPAN>
<SPAN style="COLOR: #000000">0</SPAN> <SPAN
style="COLOR: #000000">\cs\src\Ice\Proxy.cs:行号 </SPAN> <SPAN
style="COLOR: #000000">880</SPAN> <SPAN style="COLOR: #000000"><BR><IMG
alt="" align=top
src="ZeroC%20ICE%20
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ICE字符转换.rar (22个子文件)
ICE字符转换
ICE学习笔记(01):Slice规范 - 东风 - 博客频道 - CSDN_NET.mht 312KB
ZeroC ICE C#客户端 C++服务端 参数中包含有中文的string出错的解决方法 - 海阔天空 张翼飞翔 - 博客生活_files
ScriptResource.axd 21KB
ScriptResource(1).axd 82KB
ExpandedBlockStart.gif 79B
xml.gif 404B
ScriptResource(2).axd 29KB
ExpandedSubBlockStart.gif 83B
ShowHidden.js 3KB
WebResource.axd 20KB
311355.jpg 631B
ExpandedBlockEnd.gif 68B
urchin.js 22KB
JpegImage.jpg 2KB
dot.gif 59B
ContractedBlock.gif 80B
None.gif 59B
ExpandedSubBlockEnd.gif 71B
InBlock.gif 70B
ContractedSubBlock.gif 85B
style.css 7KB
ZeroC ICE C#客户端 C++服务端 参数中包含有中文的string出错的解决方法 - 海阔天空 张翼飞翔 - 博客生活.mht 389KB
ZeroC ICE C#客户端 C++服务端 参数中包含有中文的string出错的解决方法 - 海阔天空 张翼飞翔 - 博客生活.htm 181KB
共 22 条
- 1
风飘水寒
- 粉丝: 1
- 资源: 16
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页