|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
✓ entity is NOT output correctly by DOM parser
Need a small help again.
I DO NOT have to worry about entites, provided my parser outputs the correct character map for those entities. in my original XMl file, I have an entity ʟ It represents(ALT 671) a check symbol(a box). But the output XMl file from my DOMparser represents it as a question mark, which is NOT what I want. Could you help me why does my parser doesn't output correct character for this particular entity only? Any suggestion is grately appreciated. -Srivalli. |
|
#2
|
|||
|
|||
|
Question marks in the output usually mean that the browser isn't using the correct encoding. Most (all?) browsers try to guess which encoding to use but more often than not IE and Netscape get it wrong. Try adding an <xsl:output encoding="UTF-8"/> at the start of your stylesheet - you may need to experiment by forcing the browser to use different encoding then put the right value into the xsl:output
|
|
#3
|
|||
|
|||
|
didn't work
Thanks teedee for your reply.
I set my encoding to UTF-8...it didnt work either.... ✓ is defined in iso encoding...tried it but didnt work either. -Srivalli |
|
#4
|
|||
|
|||
|
Did you try replacing ✓ with the numeric entity reference? I just tried & #0671; and it outputs the box character
|
|
#5
|
|||
|
|||
|
thanks....
Hi teedee....
thanks for your reply... i tried it with &_#_x_2713_; (without underlines). i found online thta it is the representation for the check character.. when I used it, I got box too. So, I assume that my editor,EditPlus which is what I'm using now, cannot output these hexadecimal characters... I might find a different editor and try it again. Thank you very much for your help. -Srivalli. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > ✓ entity is NOT output correctly by DOM parser |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|