質問

UTF-8文字をサービスに送信するようにWCFサービス /クライアントを構成するにはどうすればよいですか?私はこのような「フィンランド語、ルーマニア語のテキスト」を送ってほしい。

  <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テキストエンコードを使用しています。

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top