Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Invalid character while using xmldocument.load?

Invalid character while using xmldocument.load?

Scheduled Pinned Locked Moved C#
tutorialquestion
6 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    NetRams
    wrote on last edited by
    #1

    Hi, I am having spanish characters as memorystream, when i give this stream to xmldocument.load - it gives me Invalid characters errro. How to solver this isssue.

    Be simple and Be sample.

    G B J 4 Replies Last reply
    0
    • N NetRams

      Hi, I am having spanish characters as memorystream, when i give this stream to xmldocument.load - it gives me Invalid characters errro. How to solver this isssue.

      Be simple and Be sample.

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      Which encoding do you use for the characters, and what encoding is specified in the xml header?

      Despite everything, the person most likely to be fooling you next is yourself.

      1 Reply Last reply
      0
      • N NetRams

        Hi, I am having spanish characters as memorystream, when i give this stream to xmldocument.load - it gives me Invalid characters errro. How to solver this isssue.

        Be simple and Be sample.

        B Offline
        B Offline
        Brij
        wrote on last edited by
        #3

        check encoding and update it accordingly.

        Cheers!! Brij

        1 Reply Last reply
        0
        • N NetRams

          Hi, I am having spanish characters as memorystream, when i give this stream to xmldocument.load - it gives me Invalid characters errro. How to solver this isssue.

          Be simple and Be sample.

          J Offline
          J Offline
          Jakob Olsen
          wrote on last edited by
          #4

          Make sure the encoding is the same. You should probably use UTF-8

          ASCII tables, HTML entities, types, string formats and more info for the serious coder at: www.codecharts.com

          1 Reply Last reply
          0
          • N NetRams

            Hi, I am having spanish characters as memorystream, when i give this stream to xmldocument.load - it gives me Invalid characters errro. How to solver this isssue.

            Be simple and Be sample.

            G Offline
            G Offline
            Guffa
            wrote on last edited by
            #5

            Ok, three people so far have suggested that it's the encoding that is the problem. Anyone else why want to suggest that it's the encoding that is the problem before we close? ;)

            Despite everything, the person most likely to be fooling you next is yourself.

            M 1 Reply Last reply
            0
            • G Guffa

              Ok, three people so far have suggested that it's the encoding that is the problem. Anyone else why want to suggest that it's the encoding that is the problem before we close? ;)

              Despite everything, the person most likely to be fooling you next is yourself.

              M Offline
              M Offline
              Mark Salsbery
              wrote on last edited by
              #6

              Guffa wrote:

              Anyone else why want to suggest that it's the encoding that is the problem before we close?

              Not me. I'm thinking there's characters in the stream that are invalid for the encoding of the XML. :)

              Mark Salsbery Microsoft MVP - Visual C++ :java:

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups