I'm trying to post a message on a MSMQ using WCF with a MsmqIntegrationbinding. Sending works but when I look at the message that has been sent to the queue. The encoding is incorrect.
Is it possible to change the message encoding to UTF-16? I already tried to solve this using a custom binding. This didn't solve my issue. I pasted the custom binding that I used below.
<binding name="CustomMsmqIntegrationBinding">
<textMessageEncoding messageVersion="None" writeEncoding="utf-16" />
<msmqIntegration exactlyOnce="true">
<msmqTransportSecurity msmqAuthenticationMode="None" msmqProtectionLevel="None" />
</msmqIntegration>
</binding>