0

hi

im not sure if this is a php issue, or a doctype thing - im using the 'strict' doctype... all of the apostrophes (') in my text are being swopped out for black diamonds with a question mark in them...?

Huh?

3
Contributors
6
Replies
7
Views
7 Years
Discussion Span
Last Post by Airshow
0

I don't think it's the !Doctype.

Could be your editor. MS Word with "smart quotes" turned on is a particular annoyance. Maybe other editors too.

First thing to try is Notepad to inspect/edit/save a copy.

Airshow

0

hi airshow

thanks again for the help, unfortunately ive done everything in InType, which is a plain text editor, the problem comes in in my 'tab' system - i have three tabs, each tab click starts an httpRequest which pulls some content out of a DB, then populates the content area using innerHTML...

0

hi airshow

thanks again for the help, unfortunately ive done everything in InType, which is a plain text editor, the problem comes in in my 'tab' system - i have three tabs, each tab click starts an httpRequest which pulls some content out of a DB, then populates the content area using innerHTML...

are u using addslashes() before adding the data to DB?
if not, try it and use stripslashes() on the retrieved data before displaying it..
u can also try html_entity_decode() before displaying ur content...
just a few suggestions... cant say for sure !!

0

Hi

I tried escaping the apostrophes, didnt help unfortunately, ended up looking for an HTML entity for the (')... used ''' seems to have sorted things out :)

Thanks everyone

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.