ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-xml
perl-xml
=?gb2312?B?tPC4tDogSG93IGNhbiBJIHVzZSB4bWwgZmlsZSBlbmNvZGUgZ2IyMw==?= =?gb2312?B?MTIgd2l0aCBYTUw6OlBhcnNlcg==?=
by =?gb2312?B?ucvcsg==?= other posts by this author
Dec 5 2001 7:19AM messages near this date
view in the new Beta List Site
Re: How can I use xml file encode gb2312 with XML::Parser | ANN: XML::Xalan 0.32
HI,umesh:=0D
   Thanks for you help.But still can't work.Because the XML just like=0D
this:=0D
       <?xml version=3D\"1.0\" encoding=3D"gb2312"?> =0D
      <record> =0D
         <dep_name> =CE=D2=B2=BB=D6=AA=B5=C0=C3=DC=C2=EB</dep_name>=0D
         <dep_pub_price> 11111111ds</dep_pub_price>=0D
         <dep_pra_price> 2222222</dep_pra_price>=0D
         <type_id> 1</type_id>=0D
      </record>  =0D
   If I use this encoding name, the parser will said can't find=0D
gb2312.enc.If I change the encoding name ,the paser will said error on=0D
line 3.=0D
   I also install the Jcode and can use it to read some GB string from=0D
Excel file.But I can't use these to Parser GB file.=0D
   And I think if ur way can do,also can't use it in other module which=0D
use XML::Parser.For example,the XML::Xpath is can't run very=0D
will,because it must use XML::Parser to check the xml file.=0D
=A1=A1 And now I find a pool way to do this.First I use some script to=0D
change GB string to UTF8.and then use UTF8 to parser it.I know it's a=0D
very pool way to do,but I have no way to do.=0D
   Why the XML::Parser is not support gb,it's a very big mistake.May=0D
next time I will choose use Java to developer my project.hehe=0D
 =0D
   Thanks for your help.=0D
 =0D
 =0D
 guyii=0D
 =0D
Attachments:
unknown1

Thread:
=?gb2312?B?ucvcsg==?=
umesh
=?gb2312?B?ucvcsg==?=

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved