How can I change encoding in a VB.Net webservice?

J

JAA

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");

I have also tries to change the following lines in Web.config:

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

But, this also make the same result.

Thanks for any help in advance. :)
JAA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top