If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Oracle > Inserting HTML character reference

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-03-10, 20:40
nirmalakr nirmalakr is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
Inserting HTML character reference

Hi,
am trying to insert an HTML character reference emdash '—' in a varchar2 column. When i try to read the data saved, its been replaced by a '?'. However, it doesn't happen to all the HTML character references since i see the data for '®' correctly. How do i save the data in order to view these special characters without getting substituted by '?'.

Thanks in advance
Nim

Last edited by nirmalakr; 02-03-10 at 20:59.
Reply With Quote
  #2 (permalink)  
Old 02-04-10, 00:17
anacedent anacedent is offline
Registered User
 
Join Date: Aug 2003
Location: Where the Surf Meets the Turf @Del Mar, CA
Posts: 6,407
>How do i save the data in order to view these special characters without getting substituted by '?'.
Perhaps you are asking the wrong question.

One of 2 possible situations exist.
1) incorrect data is being stored in the DB.
2) incorrect data is being displayed/presented to the user/viewer.

SELECT ASCIISTR(field_in_question) from your_table;

modify line above then using CUT & PASTE post SQL & results back here
__________________
You can lead some folks to knowledge, but you can not make them think.
The average person thinks he's above average!
For most folks, they don't know, what they don't know.
Reply With Quote
  #3 (permalink)  
Old 02-04-10, 01:43
nirmalakr nirmalakr is offline
Registered User
 
Join Date: Feb 2004
Posts: 3
It was not an incorrect data. The HTML entity was part of an HTML code that needed to be saved in database. By the way it was not substituting '?' for all HTML entities(eg "&#174" but only for the character reference '&#8212'
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On