Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > How can I change encoding in a VB.Net webservice?

Reply
Thread Tools

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

 
 
JAA
Guest
Posts: n/a
 
      09-22-2005
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


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
Reading Text File Encoding and converting to Perls internal UTF-8 encoding sln@netherlands.com Perl Misc 2 04-17-2009 11:22 PM
A Paradise DNS address change? What change? There was no change. Tony Neville NZ Computing 7 09-22-2006 01:02 PM
changing JVM encoding; setting -Dfile.encoding doesn't work pasmol@plusnet.pl Java 1 10-08-2004 09:50 PM
Encoding.Default and Encoding.UTF8 Hardy Wang ASP .Net 5 06-09-2004 04:04 PM



Advertisments