[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Phillip

8/23/2003 12:10:00 AM

I have not tested this, but a possible solution would be to send the HTTP
header that follows (or something similar)... I'm not sure how well it will
work with XML. Should work fine.

Content-type: change/this; charset=iso-8859-1

"Karl Bauer" <schorsch01@yahoo.de> wrote in message
news:bi4vmr$u6b$1@paperboy.Austria.EU.net...
> Hi!
>
> Is it possible to change the encoding type from the default utf-8 to
> iso-8859-1 for a c# client?
> The client will send some german characters like &ouml; ö or &auml; ä.
> The server is also implemented in c#/.net and uses Microsoft Web Service
> Enhancements...
> I searched google but couldn't found any solution. I tried the following
> without any result:
>
> Context.Response.ContentEncoding =
> System.Text.Encoding.GetEncoding("ISO-8859-1");
>
>
> <globalization requestEncoding="utf-8" responseEncoding="utf-8" />
> in the config file of the client.
>
> XmlDeclaration xmldecl = xmlRet.CreateXmlDeclaration("1.0","ISO
> 8859-1","yes");
> xmlRet.InsertBefore(xmldecl, xmlRet.DocumentElement);
>
> and an inherited SoapExtension Class posted in another newsgroup.
>
http://groups.google.at/groups?hl=de&lr=&ie=UTF-8&oe=UTF-8&thread....
>
0210171453.4202ba5f%40posting.google.com&rnum=1&prev=/groups%3Fq%3Dchange%2B
>
encoding%2B%2522web%2Bservice%2522%2Bc%2523%2Biso%26hl%3Dde%26lr%3D%26ie%3DU
>
TF-8%26oe%3DUTF-8%26selm%3D67235c8e.0210171453.4202ba5f%2540posting.google.c
> om%26rnum%3D1
>
>
>
>