I have a WebService. All methods have a return value of type String.
I call all methods using HttpGet.
It seems that setting the follwing in web.config:
<globalization requestEncoding="windows-1252"
responseEncoding="windows-1252" />
works fine for all aspx pages, but not for asmx.
Whenever I call a WebMethod, the http response uses an encoding of utf-8,
and the xml returned seems to use utf-8 also.
example of the server response:
HTTP/1.1 200 OK
Server: Microsoft-IIS/5.0
Date: Fri, 30 Apr 2004 09:59:21 GMT
X-Powered-By: ASP.NET
Connection: close
X-AspNet-Version: 1.1.4322
Cache-Control: private, max-age=0
Content-Type: text/xml; charset=utf-8
Content-Length: 3333
<?xml version="1.0" encoding="utf-8"?>
<string xmlns="http://www.xxx.com/services"> method response here</string>
How can I change the http response to use windows-1252, or, at least, the
<?xml....> to be encoded using "windows-1252" ?
Thank you,
Sergiu
Dale
"Sergiu Damian" <sergiu...@nivis.com> wrote in message
news:eM%23twppL...@TK2MSFTNGP11.phx.gbl...
-Dino
"DalePres" <nos...@nomail.com> wrote in message
news:unZlB8%23LEH...@TK2MSFTNGP10.phx.gbl...