MSXML ServerXMLHTTP

Discussion in 'XML' started by mohn3310, Apr 16, 2004.

  1. mohn3310

    mohn3310 Guest

    We're having some problems with foreign characters using
    ServerXMLHTTP.

    We have an asp page that calls a function in COM through
    ServerXMLHTTP. The COM component returns xml data. If that data
    contains any foreign characters, the "responseXML.xml" method on the
    ServerXMLHTTP component is empty. It works fine if there are no
    foreign characters.

    How can we get this to work? I assumed it had something to do with the
    encoding. The xml is returned to the COM component from SQL Server,
    which doesn't include the "encodings" attribute. So we tried inserting
    the "<?xml version='1.0' encoding=''?>" in front of the xml data, with
    different encodings, but nothing seems to work.

    Any suggestions?

    Thanks
    mohn3310, Apr 16, 2004
    #1
    1. Advertising

  2. mohn3310 wrote:

    > We're having some problems with foreign characters using
    > ServerXMLHTTP.
    >
    > We have an asp page that calls a function in COM through
    > ServerXMLHTTP. The COM component returns xml data. If that data
    > contains any foreign characters, the "responseXML.xml" method on the
    > ServerXMLHTTP component is empty. It works fine if there are no
    > foreign characters.
    >
    > How can we get this to work? I assumed it had something to do with the
    > encoding. The xml is returned to the COM component from SQL Server,
    > which doesn't include the "encodings" attribute. So we tried inserting
    > the "<?xml version='1.0' encoding=''?>" in front of the xml data, with
    > different encodings, but nothing seems to work.
    >
    > Any suggestions?


    If there is no XML declaration with an encoding then the document needs
    to be UTF-8 or UTF-16 encoded.
    --

    Martin Honnen
    http://JavaScript.FAQTs.com/
    Martin Honnen, Apr 16, 2004
    #2
    1. Advertising

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. =?Utf-8?B?QnJpYW4gQmFybmV0dA==?=

    retrieving PDF file with ServerXMLHTTP object

    =?Utf-8?B?QnJpYW4gQmFybmV0dA==?=, Feb 14, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    1,199
    =?Utf-8?B?QnJpYW4gQmFybmV0dA==?=
    Feb 15, 2004
  2. anshu
    Replies:
    0
    Views:
    358
    anshu
    Sep 13, 2004
  3. David

    .NET version of ServerXMLHTTP?

    David, Nov 30, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    4,751
    David
    Nov 30, 2004
  4. Maris Janis Vasilevskis

    MSXML2.ServerXMLHTTP to HttpWebRequest: Error 500

    Maris Janis Vasilevskis, Aug 29, 2005, in forum: ASP .Net
    Replies:
    2
    Views:
    6,250
    Maris Janis Vasilevskis
    Aug 29, 2005
  5. =?Utf-8?B?RGF2ZSBCcm93bg==?=

    HttpWebRequest/.ServerXMLHTTP.4.0 - different results

    =?Utf-8?B?RGF2ZSBCcm93bg==?=, Nov 9, 2005, in forum: ASP .Net
    Replies:
    8
    Views:
    3,316
    Joerg Jooss
    Nov 12, 2005
Loading...

Share This Page