ICU doesn't support it. Iconv might, if you're running on a FreeBSD system. This looks to me like an extension, not a standard, but I'm no expert on encoding. I'd stick to the encodings defined by the Unicode standard (at least if using UTF-x).
If you must use UTF-2, I imagine you'll need to write a transcoder. > -----Original Message----- > From: Agrawal, Vikas (ELS) [mailto:[EMAIL PROTECTED] > Sent: Tuesday, September 09, 2003 12:14 PM > To: '[EMAIL PROTECTED]' > Subject: RE: Exception for UTF-2 encoding > > > Please look at http://www.chedong.com/phpMan.php/man/utf2/4 > > -----Original Message----- > From: Jesse Pelton [mailto:[EMAIL PROTECTED] > Sent: 09 September 2003 17:11 > To: '[EMAIL PROTECTED]' > Subject: RE: Exception for UTF-2 encoding > > > What is UTF-2? According to > http://www.unicode.org/glossary/index.html, > "There are seven > character encoding schemes in Unicode: UTF-8, UTF-16, > UTF-16BE, UTF-16LE, UTF-32, UTF-32BE and UTF-32LE." It looks > to me like > your file specifies an invalid encoding. > > > -----Original Message----- > > From: Agrawal, Vikas (ELS) [mailto:[EMAIL PROTECTED] > > Sent: Tuesday, September 09, 2003 5:49 AM > > To: '[EMAIL PROTECTED]' > > Subject: Exception for UTF-2 encoding > > > > > > 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>> > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
