xml encoding problems

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Neet

    xml encoding problems

    Hi,
    I am currently working on sending an XML request to a server and it responds with an xml response. This request and response use ISO-8859-1 encoding. The xml request and response need to match. The Response i get, replaces some of the French text with <e9> characters, and the request that i send them has <c3><a9> as the characters which identify the French text. When i convert both to a string, they return the identical text, but the xml for both dont match because of the difference in the encoding text.

    Can anyone tell me why that might be happening and how i can solve it?

    Thanks,
    Neet

  • Sergey Dubinets

    #2
    Re: xml encoding problems

    I don't know ISO-8859-1 encoding, can it be that <e9> and <c3><a9> represent
    the same character?
    In this case it's likely that server prefer encode it with <e9>.
    If you encode your request using <e9> to match server behavior.
    SystemXml use System.Text.Enc oding for all encoding it does.
    --
    Sergey
    -------
    This posting is provided "AS IS" with no warranties, and confers no rights.

    "Neet" <neet@six88.com > wrote in message
    news:5A990E31-7F1C-4596-B871-EBB94ECE4C13@mi crosoft.com...[color=blue]
    > Hi,
    > I am currently working on sending an XML request to a server and it[/color]
    responds with an xml response. This request and response use ISO-8859-1
    encoding. The xml request and response need to match. The Response i get,
    replaces some of the French text with <e9> characters, and the request that
    i send them has <c3><a9> as the characters which identify the French text.
    When i convert both to a string, they return the identical text, but the xml
    for both dont match because of the difference in the encoding text.[color=blue]
    >
    > Can anyone tell me why that might be happening and how i can solve it?
    >
    > Thanks,
    > Neet
    >[/color]


    Comment

    Working...