Overview
Features
Download
Documentation
Community
Add-Ons & Services

Poco XML how to support Chinese(gb2312) encoding?

Please post support and help requests here.

Poco XML how to support Chinese(gb2312) encoding?

Postby coolzdp » 28 Feb 2008, 10:10

xml version="1.0" encoding="gb2312"

The xml file encoding like this cannot be parsed, how can i resolve this?

Thanks!

==

or like tinyxml, just ignore encoding, so we can handle ANSI text...
coolzdp
 
Posts: 8
Joined: 12 Jan 2008, 05:04
Location: China

Re: Poco XML how to support Chinese(gb2312) encoding?

Postby guenter » 05 Mar 2008, 11:31

You'll have to implement an encoding class handling the gb2312 encoding. For an example of how to implement an encoding class, see Poco::UTF8Encoding, Poco::Latin1Encoding, etc. in the Foundation library.
Once you have implemented your encoding class, you have to register it with the XML parser (SAXParser::addEncoding()).

guenter
 
Posts: 1091
Joined: 11 Jul 2006, 16:27
Location: Austria


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests