Question

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>
Was it helpful?

Solution

There's no configuration necessary. basicHttpBinding already uses UTF-8 text encoding by default.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top