Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 10th, 2005, 02:00 PM
Authorized User
 
Join Date: Jun 2003
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kabe
Default strange characters

hi, have a problem to get a specific character into xml

have look here: http://www.deba.biz/deba/english/pro...cates_eng.html

It's about the sign after 'Cos' in the table (near Current (Ampere))

thx, kabe
 
Old March 10th, 2005, 02:14 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

It's a greek small letter phi, Unicode &_#x03C6;

Enter it in XML as showm, except for the underscore.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old March 10th, 2005, 07:15 PM
Authorized User
 
Join Date: Jun 2003
Posts: 57
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to Kabe
Default

then I get an 'f' as result

i'm using this output setting:
<xsl:output method="html" encoding="UTF-8" version="4.0" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" media-type="text/html"/>
and
<?xml version="1.0" encoding="UTF-8"?>
 
Old March 10th, 2005, 08:24 PM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

The character is almost certainly correctly represented in the HTML document generated by the stylesheet, and is then being mishandled by some other software before it appears on your screen. There are too many possibilities for me to make guesses (you haven't explained your processing environment), and I'm afraid it's probably outside my area of expertise anyway.

See if generating it using encoding="iso-8859-1" works any better. This will force it to be output as a numeric character reference or built-in entity reference, which may have a better chance of getting through to the browser without corruption (assuming a browser is involved - you haven't actually said).

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference





Similar Threads
Thread Thread Starter Forum Replies Last Post
Strange Behaviour VeganMan BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 9 April 14th, 2008 11:16 AM
strange error Iguchi Visual Studio 2008 1 April 11th, 2008 06:21 AM
Strange VB Apocolypse2005 Beginning VB 6 3 December 4th, 2006 02:48 PM
Really Strange... nooor83 BOOK: Professional Ajax ISBN: 978-0-471-77778-6 7 May 7th, 2006 12:51 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.