Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Store superscript characters in xml file

Status
Not open for further replies.

fawkes

Technical User
Sep 12, 2003
343
GB
How can I store superscript characters in an xml file?

I can store squared as ² and cubed as ³ but i can't store ^4 as a single superscript character.
 
My original solution works when viewed in firefox but not ie so ignore it.

I've checked out jsuji's link and it gives me something similar.

It is the encoding in my xml that is causing the probelm?

Code:
<?xml version="1.0" encoding="UTF-8"?>
 
Could you show the concrete instance where it fails?
 
A sample of xml is:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<fg:DimensionUnits xmlns="[URL unfurl="true"]http://www.mysite.com/ns"[/URL] xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL] 
						 xmlns:fg="[URL unfurl="true"]http://www.mysite.com/ns"[/URL]	xsi:schemaLocation="[URL unfurl="true"]http://www.mysite.com/ns[/URL] DimensionUnits.xsd">
	<fg:Type>Moment Of Inertia</fg:Type>
	<fg:Units>
		<fg:Unit>
			<fg:Name>millimetre&#8308;</fg:Name>
			<fg:Abbreviation>mm&#8308;</fg:Abbreviation>
			<fg:Factor>1e-12</fg:Factor>
			<fg:IsMetric>true</fg:IsMetric>
			<fg:IsSIUnit>false</fg:IsSIUnit>
		</fg:Unit>
	</fg:Units>
</fg:DimensionUnits>

I haven't included the schema but I don't think you need it.

If you open this xml in firefox you see a subscript 4, if you open it in ie it doesn't show.
 
Thanks for the demo. But, it shows up all rights in ie as well on me, or am I missing something?
 
When I try and show it in ie6 I get square rectangles instead of the superscript 4.

I'm using windows xp pro. Is it something I've got on my machine? Or something I'm missing from my machine?

When I open the xml file in ie I get a blocked content message, could this be the problem?

I'm also reading from the xml file into a vb.net combo box and it isn't reading the superscript 4 character, again I just get a square rectangle instead.
 
Make sure you do not have your own stylesheet on the ie accessibility setting. Otherwise, I have no idea. It displays just fine for my archaic system with ie6, and I would be surprised xp be so intrusive in this aspect!
 
I don't understand the following

Make sure you do not have your own stylesheet on the ie accessibility setting
 
I don't think you have it if you do not get it because it is a somewhat sophisticated tweak. It is in option-accessibility setting of ie.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top