Kamis, 07 April 2011

Text Encoding and WCF

For the most part setting the encoding (UTF-8, UTF-16, etc.) on a WCF service is pretty simple:  set textEncoding on basicHttpBinding/wsHttpBinding or encoding on a textMessageEncoding in a customBinding.  It works in almost all cases, but there’s a surprising number of ways of indicating the encoding of message: the content type of the messagean XML declaration at the start of the messagea BOM (

Tidak ada komentar:

Posting Komentar