发送UTF-8字符到WCF服务 [英] Send UTF-8 character to WCF service
本文介绍了发送UTF-8字符到WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何配置WCF服务/客户端将UTF-8字符发送到服务?
我想要发送挪威语,芬兰语,罗马尼亚语这样的ţşîăâăâşţŞŢĂ
我的约束是这样的:
How can i configure WCF service / client to send UTF-8 characters to the service? I want send norwegian, finnish, romanian text like this "ţşîăâăâşţŞŢĂÎÂ" My binding is like this:
<basicHttpBinding>
<binding name="myBindingConfiguration" receiveTimeout="00:21:00"
maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text"
transferMode="Buffered"
useDefaultWebProxy="true"
textEncoding="utf-8"
>
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
<security mode="None"/>
</binding>
</basicHttpBinding>
推荐答案
没有必要的配置。 basicHttpBinding 默认使用UTF-8文本编码。
There's no configuration necessary. basicHttpBinding already uses UTF-8 text encoding by default.
这篇关于发送UTF-8字符到WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文