BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

XML, XSL, Unicode and special chars

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML
View previous topic :: View next topic  
Author Message
Andi
Guest





PostPosted: Fri May 20, 2005 2:26 pm    Post subject: XML, XSL, Unicode and special chars Reply with quote



Hi,

while writing a program using XML files, TXSLPageProducer and TWebBrowser, I
encountered the following problem:

The XML file contains language specific characters in tag contents and
attribute values, such as german ä, ö, ü. Since XML does not understand the
normal HTML entities such as ä I used ä etc.

TXSLPageProducer takes this XML file and a XSL stylesheet to produce
(X)HTML. In the resulting HTML text the entities from the XML file (such as
ä) are replaced with the german letter ä rather than copying the entity
"as is" to the HTML text.

When displaying the HTML text in a TWebBrowser component, these letters are,
depending on the machine running the program, displayed correctly as ä or
replaced with some ugly and non-readable text portions. I could not find out
the differences in the installed IE or msxml.dll so I don't understand the
behavior.

How can I solve my problem? Why does TXSLPageProducer replace the &...;
entities with the original letter? Why the different behavior of TWebBrowser
on different machines?

Thx
Andi



Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi XML All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.