You must Sign In to post a response.
  • Category: XML

    How to parse special characters in xml

    i have a xml document in which i have some Chinese language characters, i want to load that xml doc into a list for my linq operations, for which it throws an exception.

    i want to bypass this with either of the case

    case1: when i get that exception, i want those special characters to be deleted and load again.

    case2: i want a method read that doc even it has special characters.

    solution for any case would do the job. Thank you.
  • #753226
    What encoding you are using for this character. Please change the encoding to UTF 8 or UTF 16 and
    If you want to change the character encoding to Unicode, just remove the encoding before saving the document:
    <?xml version="1.0"?>

    Thanks & Regards
    Anil Kumar Pandey
    Microsoft MVP, DNS MVM


  • Sign In to post your comments