UTF-8 문자를 WCF 서비스에 보냅니다
-
20-09-2019 - |
문제
WCF 서비스 / 클라이언트를 서비스에 UTF-8 문자를 보내도록 구성하려면 어떻게해야합니까? 나는 노르웨이, 핀란드, 루마니아어 텍스트를 보내고 싶다.
<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 텍스트 인코딩을 이미 사용하고 있습니다.
제휴하지 않습니다 StackOverflow