Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - xml encoding of unicode characters [Thread Next] Re: xml encoding of unicode charactersTo: NULL Date: 1/28/2009 12:55:00 PM vizagboy wrote: > I have a xml generated with a unicode character: > <name>Test Corp. 42 §§ 61 </name> > > When i transform the xml to HTML using XSL, it is adding an extra character: > Welcome to Test Corp. 42 §§ 61 That looks like UTF-8 decoded as a ISO-8859-1 or Windows-1252. > Complete xml: > <?xml version="1.0" ?> > <company> > <name>Test Corp. 42 §§ 61 </name> > </company> > > Xsl: > <?xml version="1.0" encoding="utf-16" ?> > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> > > <xsl:output method="html" encoding="UTF-8" /> > > <xsl:template match="/"> > <html> > <head> > </head> > <body> > <h2>Welcome to <xsl:value-of select="/company/name"/></h2> > <p/> > </body> > </html> > > </xsl:template> > > </xsl:stylesheet> How do you run the transformation exactly? How do you look at the result? -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
