 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Andi Guest
|
Posted: Fri May 20, 2005 2:26 pm Post subject: XML, XSL, Unicode and special chars |
|
|
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 |
|
 |
|
|
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
|
|