SunQuest
           XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
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  
Old November 17th, 2003, 11:52 AM
srivalli9 srivalli9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 48 srivalli9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 4 sec
Reputation Power: 6
✓ 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.

Reply With Quote
  #2  
Old November 19th, 2003, 01:57 PM
teedee teedee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 42 teedee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
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

Reply With Quote
  #3  
Old November 19th, 2003, 02:07 PM
srivalli9 srivalli9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 48 srivalli9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 4 sec
Reputation Power: 6
didn't work

Thanks teedee for your reply.

I set my encoding to UTF-8...it didnt work either....
&check; is defined in iso encoding...tried it but didnt work either.

-Srivalli

Reply With Quote
  #4  
Old November 19th, 2003, 03:19 PM
teedee teedee is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2003
Posts: 42 teedee User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 5
Did you try replacing &check; with the numeric entity reference? I just tried & #0671; and it outputs the box character

Reply With Quote
  #5  
Old November 19th, 2003, 05:05 PM
srivalli9 srivalli9 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 48 srivalli9 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 4 sec
Reputation Power: 6
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > &check; entity is NOT output correctly by DOM parser


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway