Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change encoding in a webservice

Status
Not open for further replies.

Petal

Programmer
Jun 8, 2001
56
NO
I have made a webservice which spits out some XML data. This
data gets the processing-instruction:

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

Is it possible to change the encoding of this processing-
instruction to e.g. "ISO-8859-1"? I've tried the following,
without any results:

Context.Response.ContentEncoding =
System.Text.Encoding.GetEncoding("ISO-8859-1");

Thanks for any help in advance. :)

JAA
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top