Add this in your constructor of your web service class. I beleive that
should work.
this.Context.Response.ContentEncoding =
System.Text.Encoding.GetEncoding("ISO-8859-1");
Thanks for the reply
I tried the line on my service and it says that 'this' does not contain a
definition for 'Context', so I created a new service in VWD 2005 and now I
can use your line in the constructor, but the service keeps responding UTF-8
encoded messages.
What am I doing worng??, can you help me a little more?????
Thanks
> Add this in your constructor of your web service class. I beleive that
> should work.
>
> this.Context.Response.ContentEncoding =
> System.Text.Encoding.GetEncoding("ISO-8859-1");
Keenan Newton - 21 Feb 2005 19:47 GMT
Are you sure you put it in the constructor of the Web Service class.
Context is definelty part of the WebService class see the MSDN
documentation.