Hi Agrawal,
I think you are out of luck. XML Parsers are only obligated to recognize UTF16 and UTF8, furthermore
UTF2 is not part of the IANA-CHARSET.
From XML spec:
"In an encoding declaration, the values "UTF-8", "UTF-16", "ISO-10646-UCS-2", and "ISO-10646-UCS-4" should be used for the various encodings and transformations of Unicode / ISO/IEC 10646, the values "ISO-8859-1", "ISO-8859-2", ... "ISO-8859-n" (where n is the part number) should be used for the parts of ISO 8859, and the values "ISO-2022-JP", "Shift_JIS", and "EUC-JP" should be used for the various encoded forms of JIS X-0208-1997. It is recommended that character encodings registered (as charsets) with the Internet Assigned Numbers Authority [IANA-CHARSETS], other than those just listed, be referred to using their registered names; other encodings should use names starting with an "x-" prefix. XML processors should match character encoding names in a case-insensitive way and should either interpret an IANA-registered name as the encoding registered at IANA for that name or treat it as unknown (processors are, of course, not required to support all IANA-registered encodings)."
Didn't you think you could put anything in the EncodingDecl?
Jeff Rodriguez
From: "Agrawal, Vikas (ELS)" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]> Subject: Exception for UTF-2 encoding Date: Tue, 9 Sep 2003 10:48:46 +0100
Hi All,
I am using xml4c 2.2.0 and parsing one of my file using DOMBuilder. It is failing to recognize UTF-2 with the message
"An exception occurred! Type:TranscodingException, Message:Could not create a converter for encoding: UTF-2"
Can anybody help?
Thanks & Regards Vikas Agrawal
ps: attaching xml file with processing instruction as follows "<?xml version="1.0" encoding="utf-2"?>"
<<xml502bfail.xml>> << xml502bfail.xml >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
_________________________________________________________________
Express yourself with MSN Messenger 6.0 -- download now! http://www.msnmessenger-download.com/tracking/reach_general
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
