encoding specified in XML declaration is incorrect:

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chetan
    New Member
    • Nov 2005
    • 1

    #1

    encoding specified in XML declaration is incorrect:

    i have problem to parse the xml in unicode encoding

    Code:
    <?xml version="1.0" encoding="unicode"?>
    <page pageNumber="2" pageTemplate="FlexiLayout1">
       <block blockName="Address">13174 Eticanto Drive</block>
       <block blockName="City">L.A. - Sherman Oaks Area</block>
       <block blockName="state"></block>
       <block blockName="lcode">ZlD_Cod9 91403</block>
    </page>
    how i parse this xml
    Last edited by Dormilich; Jan 9 '09, 07:45 AM. Reason: added [code] tags
  • TechiBharath
    New Member
    • Mar 2009
    • 5

    #2
    Hi chetan,

    Try in this way.

    Code:
    <?xml version="1.0" encoding="utf-8"?>
    or
    Code:
    <?xml version="1.0" encoding="utf-16"?>
    <?xml version="1.0" encoding="unico de"?> is wrong way of specifying the encoding to be followed.


    So use any one of the following
    windows-1252
    iso-8859
    utf-8
    utf-16

    Thanks
    Bharath
    Last edited by Dormilich; Mar 5 '09, 09:45 AM. Reason: changed [quote] tags to [code] tags

    Comment

    • Dormilich
      Recognized Expert Expert
      • Aug 2008
      • 8694

      #3
      Originally posted by TechiBharath
      So use any one of the following
      iso-8859
      ...
      it's iso-8859-X where X is the number of the iso charset (e.g. 1 for Latin-1, and so on)

      Comment

      Working...