You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by Borislav Stoyanov <BS...@dspace.de> on 2003/10/01 19:52:51 UTC

RE: encoding="?!?"

Does this mean that I should not experience any problems with exotic
encodings?

-----Original Message-----
From: david_n_bertoni@us.ibm.com [mailto:david_n_bertoni@us.ibm.com]
Sent: Friday, September 12, 2003 5:17 PM
To: xalan-c-users@xml.apache.org
Subject: Re: encoding="?!?"






Xalan-C supports different encodings on different platforms.  If an
encoding is not supported, you will get UTF-8 instead.  On some supported
encodings, Xalan-C will write numeric character references for characters
that are supported in the encoding, rather than writing the character.  It
would be nice to improve this by writing the actual character, but there is
a performance penalty, so I have not implemented it yet.

Dave



 

                      Borislav

                      Stoyanov                 To:
xalan-c-users@xml.apache.org

                      <BStoyanov@dspac         cc:      (bcc: David N
Bertoni/Cambridge/IBM)

                      e.de>                    Subject: encoding="?!?"

 

                      09/12/2003 08:52

                      AM

 




Hi,

has anybody tried xalan-c with outputing other characters than latin? e.g.
japanese, cyrillic, etc.? And if yes, were there any peculiarities?

Best regards,

RE: encoding="?!?"

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



For input documents, you will need to ensure they are in an encoding
supported by the transcoding system of that platform.  The alternative is
to build Xerces-C with the ICU as its transcoder.  You would need to get a
compatible version of ICU and build that, then rebuild Xerces-C.  Take a
look at the Xerces-C documentation for more details.  The ICU has support
for hundreds of encodings.

For output encodings, as specified on the xsl:output element, Xalan-C will
automatically switch to UTF-8 if the platform does not support the
specified encoding.

Dave



                                                                                                                                                  
                      Borislav                                                                                                                    
                      Stoyanov                 To:      xalan-c-users@xml.apache.org                                                              
                      <BStoyanov@dspac         cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                      
                      e.de>                    Subject: RE: encoding="?!?"                                                                        
                                                                                                                                                  
                      10/01/2003 10:52                                                                                                            
                      AM                                                                                                                          
                                                                                                                                                  



Does this mean that I should not experience any problems with exotic
encodings?

-----Original Message-----
From: david_n_bertoni@us.ibm.com [mailto:david_n_bertoni@us.ibm.com]
Sent: Friday, September 12, 2003 5:17 PM
To: xalan-c-users@xml.apache.org
Subject: Re: encoding="?!?"






Xalan-C supports different encodings on different platforms.  If an
encoding is not supported, you will get UTF-8 instead.  On some supported
encodings, Xalan-C will write numeric character references for characters
that are supported in the encoding, rather than writing the character.  It
would be nice to improve this by writing the actual character, but there is
a performance penalty, so I have not implemented it yet.

Dave





                      Borislav

                      Stoyanov                 To:
xalan-c-users@xml.apache.org

                      <BStoyanov@dspac         cc:      (bcc: David N
Bertoni/Cambridge/IBM)

                      e.de>                    Subject: encoding="?!?"



                      09/12/2003 08:52

                      AM






Hi,

has anybody tried xalan-c with outputing other characters than latin? e.g.
japanese, cyrillic, etc.? And if yes, were there any peculiarities?

Best regards,