This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > January 2004 > Special characters not being interpreted





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Special characters not being interpreted
RFB

2004-01-23, 5:34 pm

Hi. I have XML with CDATA that contain special characters in escaped format
(ie, ç). I use XSL to create an OPTION for each node, and even though I
have tried setting disable-output-escaping to both 'yes' and 'no', it still
prints the escape codes, not the characters.

Please help.

Thanks.


Julian F. Reschke

2004-01-23, 7:31 pm

RFB wrote:
quote:

> Hi. I have XML with CDATA that contain special characters in escaped format
> (ie, ç). I use XSL to create an OPTION for each node, and even though I
> have tried setting disable-output-escaping to both 'yes' and 'no', it still
> prints the escape codes, not the characters.



Disable-output-escaping has nothing to do with character encoding.

Short answer: there's no way to preserve encoding through XSLT, as XSLT
won't even know the original format.

BTW: it shouldn't matter. If it does, something else is broken.

Julian
Jeffrey Tan[MSFT]

2004-01-26, 3:28 am


Hi Joe Hoggood,

We have reviewed your post. We will do some research on your issue. We will
reply to you ASAP.

Thanks for your understanding.

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

MSFT

2004-01-27, 8:29 am

Hello,

Thank you for using the community. I am Luke and I am review this issue
currently. As I understand, you have some special charactors like "ç"
in XML file. When you perform trasform with xsl, you found
disable-output-escaping didn't conver the charactor.

Regarding the issue, I agree with Julian, disable-output-escaping only
convert esscaped charactor defined in XML like "<" and ">". It will leave
"ç" in original format.

Luke
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews