You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Andre M Descombes <am...@testandgo.com> on 2001/07/02 14:23:04 UTC
Problem with Xerces15 com wrapper
Hi,
I am using version 1.5 of the DLL
I tried the IDOMDocument.loadXML command and I am passing it a string I obtained reading an UTF-8 encoded XML file.
I get the following error:
An exception occured! Type:TranscodingException, Message:Could not
create a converter for encoding: UTF-16
If I use version 1.2 of the DLL, it works fine! What can be happening?
Thanks,
Andre M. Descombes
Re: Problem with Xerces15 com wrapper
Posted by Andre M Descombes <am...@testandgo.com>.
Hi Curt,
I tried loadXML("<foo/>") and I get the same exception! so I guess it is a
problem with Xerces-C, I tried all dll versions from 1.2 till 1.5 and it
still works with 1.3 but not anymore with 1.4 or 1.5.
Andre
From: "Curt Arnold" <ca...@houston.rr.com>
To: <xe...@xml.apache.org>
> >I get the following error:
> >
> >An exception occured! Type:TranscodingException, Message:Could not
> >create a converter for encoding: UTF-16
>
> Does it occur with simpler strings, such as loadXML("<foo/>")?
>
> Do you have an xml declaration in your string or anything else a little
> unusual?
>
> I don't believe that there have been any substantial changes in the COM
> wrapper
> in that time frame and the exception would have been raised in Xerces-C,
> so I would assume that it is actually an issue with Xerces-C itself..
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problem with Xerces15 com wrapper
Posted by Curt Arnold <ca...@houston.rr.com>.
Andre M Descombes wrote:
>I tried the IDOMDocument.loadXML command and I am passing it a string I
obtained reading an >UTF-8 encoded XML file.
>
>I get the following error:
>
>An exception occured! Type:TranscodingException, Message:Could not
>create a converter for encoding: UTF-16
Does it occur with simpler strings, such as loadXML("<foo/>")?
Do you have an xml declaration in your string or anything else a little
unusual?
I don't believe that there have been any substantial changes in the COM
wrapper
in that time frame and the exception would have been raised in Xerces-C,
so I would assume that it is actually an issue with Xerces-C itself..
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Problem with Xerces15 com wrapper
Posted by Andre M Descombes <am...@testandgo.com>.
Hi all,
I Have just finished done a little more testing, with other versions of the library:
Version 1.2 the code works
Version 1.3 the code works
Version 1.4 the code doesn't work
Version 1.5 the code doesn't work
apparently something changed with version 1.4.
Thanks,
Andre M. Descombes
----- Original Message -----
From: Andre M Descombes
To: xerces-c-dev@xml.apache.org
Sent: Monday, July 02, 2001 14:23
Subject: Problem with Xerces15 com wrapper
Hi,
I am using version 1.5 of the DLL
I tried the IDOMDocument.loadXML command and I am passing it a string I obtained reading an UTF-8 encoded XML file.
I get the following error:
An exception occured! Type:TranscodingException, Message:Could not
create a converter for encoding: UTF-16
If I use version 1.2 of the DLL, it works fine! What can be happening?
Thanks,
Andre M. Descombes