0

We delivered a WCF service with a custom binding which should return utf8.

Now the caller of the services says the service does not return utf8 encoded content.

We checked the header and that is ok(it says utf8) but the question is: how can I check if the response message itself is utf-8 encoded?

(I use soap ui to call the service, but other tools are ok too)

Michel
  • 23,085
  • 46
  • 152
  • 242

1 Answers1

1

you can use any network tools like wireshark or fiddler...but your encoding must be visible in the config- check with wcf config editor tool

GCamel
  • 612
  • 4
  • 8
  • Yeah, tried fiddler, but somehow my soapui requests aren't captured. – Michel Mar 16 '17 at 10:54
  • don't use localhost in your client config but the machine name if you test in local – GCamel Mar 16 '17 at 11:58
  • I am calling a 'normal' uri for our test environment, so I thought that would be captured. – Michel Mar 16 '17 at 12:23
  • Managed to get my request in Fiddler, but there I can't find the encoding of the response, only the header (which says utf-8, but in theory the header and the actual response encoding can differ I guess?) – Michel Mar 16 '17 at 12:53
  • right, i don't find it too. You will perhaps have to go with wireshark ? – GCamel Mar 16 '17 at 13:08
  • try if you copy/paste the response in notepad++ does it give you the encoding ? in the status bar it display the "detected" encoding i think – GCamel Mar 16 '17 at 13:09