Menu

#1 B2312 Encode,don't Parser!

open
nobody
None
5
2003-12-13
2003-12-13
Anonymous
No

the Xml file:

<?xml version="1.0" encoding="GB2312"?>
<root url="http://ehomeserver/Inside/">
<PageIndex title="新闻" path="xw" ver="14"/>
<PageIndex title="娱乐" path="yl" ver="14"/>
<PageIndex title="计算机" path="jsj" ver="14"/>
<PageIndex title="体育" path="ty" ver="23/"/>
<PageIndex title="Update" path="Update" ver="0"/>
<PageIndex title="Adbanner" path="Adbanner" ver="0"/>
</root>

when run the Demo Project(Simple Parsing Demo),it
report :

[Element] root
[Fatal Error]Invalid character Line 3 Column 23

it is OK,when use MSXML parser.

I am in China,so use B2312 Encode.Run it in Delphi7

GodenJan,Happy programming to you!!!

E-mail : zmxjh@21cn.com

Discussion

  • Nobody/Anonymous

    Logged In: NO

    I Use SAX for Pascal 1.1

     
  • Karl Waclawek

    Karl Waclawek - 2004-05-14

    Logged In: YES
    user_id=290026

    It depends on the SAX vendor if it can parse B2312.
    I think only MSXML can deal with your encoding.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.