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?
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?
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
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...
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 !!
Good suggestions venkat0904. Certainly worth a try.
Airshow
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
ampersand hash 039; if I remember correctly.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.