Click to See Complete Forum and Search --> : Using special characters like ø in XML


Lars_V_J
June 21st, 2001, 04:33 AM
Hi,

How do I use special characters like æøåÆØÅ (& aelig ; , & oslash ; , & aring ; , & AElig ; , & Oslash ; , & Aring ; ) in an XML or XLS document. If I try to add them, my page will be blank. I have tried using in the first line. But...alas, no effect.

somebody please help..

Best regards
Lars VJ

flipflop
June 21st, 2001, 05:24 AM
In asp use:

var string ="stegt flæsk med fløde"
Server.HTMLEncode(string)

the result will be:
"stegt flæsk med fløde"

which can be saved in xml-format:

There is no such function in DHTML, sp you'll have to make one yourself.

Lars_V_J
June 21st, 2001, 05:31 AM
Thanx...Um...this is quite new to me. But what I wanted was to make the thingy understand things like & oslash ; or & #somenumber ; . I'd rather not use some magical asp.....

/Lars VJ

Lars_V_J
June 21st, 2001, 05:35 AM
interresting. I took the email you sent me, and tried the & #230 ; for "æ", and it worked! Now I suppose I just need to find an "ascii table" showing all the ISO8859-1 alphabet......
Do you know where I can get one of those. I mean, maybe I have to write something in spanish one day, and words like "senõr" might be needed....

/Lars VJ

flipflop
June 21st, 2001, 06:25 AM
link to ascii table:

http://msdn.microsoft.com/scripting/default.htm?/scripting/VBScript/doc/vsmscANSITable2.htm

Good luck

krishs
July 6th, 2001, 02:49 AM
Hi,

You have to use the encoding as iso-8859-1 in the xml declaration.



We also faced the same problem, and it worked after giving this encoding. For further ref., visit the site
http://msdn.microsoft.com/xml/c-frame.htm?/xml/index.asp

Regds,
Krish

rick
July 11th, 2001, 11:57 AM
Hi,

Special characters in XML should be declared in the DTD as an entity.If you can find the ISO entity sets they should all be there. You can also look at the HTML sets (HTMLlat1.ent, HTMLspecial.ent and HTMLsymbol.ent).


From the ISO set...


From the HTML set...





Rick
rguay@i4i.com
www.i4i.com

Rick
July 11th, 2001, 11:57 AM
Hi,

Special characters in XML should be declared in the DTD as an entity.If you can find the ISO entity sets they should all be there. You can also look at the HTML sets (HTMLlat1.ent, HTMLspecial.ent and HTMLsymbol.ent).


From the ISO set...


From the HTML set...





Rick
rguay@i4i.com
www.i4i.com