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

Discussion in 'ASP .Net Web Services' started by JAA, Sep 22, 2005.

  1. JAA

    JAA Guest

    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
     
    JAA, Sep 22, 2005
    #1
    1. Advertisements

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Hardy Wang

    Encoding.Default and Encoding.UTF8

    Hardy Wang, Jun 8, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    19,758
    Jon Skeet [C# MVP]
    Jun 9, 2004
  2. Mr. x
    Replies:
    2
    Views:
    858
    Andrew
    Oct 10, 2003
  3. Replies:
    1
    Views:
    24,310
    Real Gagnon
    Oct 8, 2004
  4. Guest

    webservice encoding - help!

    Guest, Nov 21, 2003, in forum: ASP .Net Web Services
    Replies:
    3
    Views:
    223
  5. Eric Elliston

    Passing Files to Webservice (Base64 encoding)

    Eric Elliston, Apr 23, 2004, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    209
    Eric Elliston
    Apr 23, 2004
  6. Magnus Lindberg

    Changing xml-encoding for webservice response

    Magnus Lindberg, May 4, 2004, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    610
    Dino Chiesa [Microsoft]
    May 5, 2004
  7. Replies:
    2
    Views:
    657
  8. xhe
    Replies:
    1
    Views:
    246
    Randy Webb
    Feb 9, 2007
Loading...