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 Örjan Reinholdsen <Or...@smarttrust.com> on 2003/06/18 15:59:47 UTC

Xerces and iso-8859-7

Hi,

I'v tried to get Xerces (both v2.2 and v2.3) to accept a document encoded with iso-8859-7 (greek characters) without luck. I get "Message: An exception occurred! Type:TranscodingException, Message:Could not create a converter for encoding: ISO-8859-7". 

The box I'm running on is equipped with SunOs 5.9 (even tried SunOs 2.6) and compiler "Sun WorkShop 6 update 2 C++ 5.3". It has iconv installed (which I guess is used when -tnative is specified when running runConfiguer). I have tried things like 

>iconv -f iso-8859-7 -t ucs-2 greek.xm
>iconv -f iso-8859-7 -t utf-16 greek.xml

This works like a charm, and indicates to me that the system has the proper transcoders in place.

Any ideas why Xerces refuses to cooperate? 

BTW, I know that ICU would probably solve the problem, but I would like to avoid using ICU if possible.

Regards
/Örjan

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Xerces and iso-8859-7

Posted by da...@us.ibm.com.



> Hi,
>
> I'v tried to get Xerces (both v2.2 and v2.3) to accept a document encoded
> with iso-8859-7 (greek characters) without luck. I get "Message: An
exception
> occurred! Type:TranscodingException, Message:Could not create a converter
for
> encoding: ISO-8859-7".
>
> The box I'm running on is equipped with SunOs 5.9 (even tried SunOs 2.6)
and
> compiler "Sun WorkShop 6 update 2 C++ 5.3". It has iconv installed (which
I
> guess is used when -tnative is specified when running runConfiguer). I
have
> tried things like
>
> >iconv -f iso-8859-7 -t ucs-2 greek.xm
> >iconv -f iso-8859-7 -t utf-16 greek.xml
>
> This works like a charm, and indicates to me that the system has the
proper
> transcoders in place.
>
> Any ideas why Xerces refuses to cooperate?

Are you sure Xerces is using iconv?  You might try adding -t iconv to
runConfigure and rebuilding the library.

Dave


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org