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 6 2001 10:28AM messages near this date
view in the new Beta List Site
Re: How can I use xml file encode gb2312 with XML::Parser | How to use the dtd...
hi,Duncan:
    I have alread these documents.But nothing help to me.The document is
also said can't support GB2312.
    Now I write a script to change the GB2312 to UTF-8, it seem works
well.
    Thanks for your help.

Regards
  guyii
-----------------------------------------------
The file gb2312.enc at "/site/5.7.2/Encode/" is a GB2312 encoding used
by Perl itself. I guess that it is equivalent but not the same as an 
encoding used by XML-Parser.
XML-Parser seems to use its own format encodings , of which there is 
not one for GB2312. It uses the module XML-Encoding to create the
encodings but I can't find where that module would get a suitable source
for GB2312.

Michel Rodriguez, who reads this list, has written a couple of articles
about XML-Parser and encodings,
http://standards.ieee.org/resources/spasystem/twig/encoding/encoding.htm
l

and 
http://www.xml.com/pub/a/2000/04/26/encodings/index.html

he might be able to explain how to create a GB2312 encoding for
XML-Parser.


As you point out in your response to another reply, converting to UTF-8
or 16, processing that and then converting back might work.

Regards

Duncan Cameron

------------------------------------------------

_______________________________________________
Perl-XML mailing list
Perl-XML@[...].com
http://listserv.ActiveState.com/mailman/listinfo/perl-xml
Thread:
Duncan Cameron
=?gb2312?B?ucvcsg==?=

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