Hi,

I have a webservice in c#.net.
I want to send all the responses of the webservice encoded in "iso-8859-1", so that german special characters will be displayed correctly.

I put this line in both files, machine.config and web.config:

<globalization requestEncoding="iso-8859-1" responseEncoding="iso-8859-1"/>


Still every response starts like that:

<?xml version="1.0" encoding="utf-8"?>

UTF-8 (!!) and all the special characters are questionmarks ???

any help would be great

thanks

bernie




--------------------------------
From: bernhard gruber

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>LkQrcF/p10qwNVQsb9Yp9g==</Id>

Re: iso-8859-1 in webservice-responses by Bruno

Bruno
Sun Oct 17 05:58:47 CDT 2004

I don't know why it does not work, but I'm wondering why you want to use
ISO-8859-1 instead of UTF-8.

UTF-8 supports German characters and you should only use ISO-8859-1 if you
have to deal with legacy systems that don't understand UTF-8.
Usually, web services are produced and consumed by layers that are written
in modern technologies (.NET, Java). So, why use an old standard here?

Bruno.

"bernhard gruber via .NET 247" <anonymous@dotnet247.com> a écrit dans le
message de news: %23UBoXCDtEHA.3156@TK2MSFTNGP12.phx.gbl...
> Hi,
>
> I have a webservice in c#.net.
> I want to send all the responses of the webservice encoded in
> "iso-8859-1", so that german special characters will be displayed
> correctly.
>
> I put this line in both files, machine.config and web.config:
>
> <globalization requestEncoding="iso-8859-1"
> responseEncoding="iso-8859-1"/>
>
>
> Still every response starts like that:
>
> <?xml version="1.0" encoding="utf-8"?>
>
> UTF-8 (!!) and all the special characters are questionmarks ???
>
> any help would be great
>
> thanks
>
> bernie
>
>
>
>
> --------------------------------
> From: bernhard gruber
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>LkQrcF/p10qwNVQsb9Yp9g==</Id>