meant this to go here, bah... -----Original Message----- From: Mark Weaver [mailto:[EMAIL PROTECTED] Sent: 05 September 2003 14:40 To: Borislav Stoyanov Subject: RE: Xalan-C 1.4 special character question
> ok,on Win2000 I have: > > in XML: > <?xml version="1.0" encoding="UTF-8"?> > <?xml-stylesheet type="text/xsl" href="Stylesheet.xsl"?> > <TL:c-source-file xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> > ... > <Element description="1234567890!"�$%&/()=?�"/> > ... > > in XSL: > <xsl:template match="Element"> > <xsl:value-of select="concat('REM: ',@description)"/> > </xsl:template> > > I get: > REM: 1234567890!"?�$%&/()=??? (with TestXSLT from a console) > REM: 1234567890!"§$%&/()=?´ calling xalan transformation functions in a > c++ program. > > even with XALAN 1.6 (I run TestXSLT from a console). > The second line is (calling Xalan from a C++ program) is correct, but you are not viewing the result as utf-8, you are viewing it as a sequence of single byte characters -- whatever editor you are looking at them in is not aware that the document is in utf-8 format. The first line is a bit mystifying, but if you are dumping utf-8 to a console, then I'm pretty sure it isn't going to look right either. btw, you've haven't shown us your xsl:output encoding, I'm assuming it is utf-8. > Note: with MSXML I dont have this problem with the same xml,xsl and > configuration. > How are you displaying the results? The best bet is to post (attach) a sample document and stylesheet. Mark
