Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Strange display issue

Status
Not open for further replies.

btaber

Programmer
May 26, 2002
307
US
I have a page being rendered from a database, but is seams the browser doesen't recognize some characters for some reason. Instead of a dash, quotes, or some other characters, the browser is printing a ? in it's place. I have figured out the characters are part of the extend ascii set like double open quotes. Is there any way to convert the entire string to prevent any problems?

 
I have tried that, but the pages also contain html...
 
the pages are retieved from a mysql database, text field
 
When you echo out the row, wrap it in the function to convert to htmlentities.

Did you try this?

please paste your attempt here.

Olav Alexander Mjelde
Admin & Webmaster
 
Infortunately, the data is stored with the html in it... The information was originally obtained from html pages, converted, formated, and inserted into a database to eliminate the 7000+ pages, but they have paragraphs, links, etc in them... I already seen the issue with the double quotes, and I used str_repace for those.. but more keep popping up... I was hoping for an easier method...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top