MAC apostrophes character display
Apostrophes entered in a form by clients using macs are coming out as 'small boxes' in Flash html textfield displays. Other symbols may be turning out weird as well.
What can I do to make sure all characters are displayed normally? (I'm
using PHP server-side).
Thanks,
Phil
Mark Hensler posted this at 09:49 — 28th February 2004.
He has: 4,048 posts
Joined: Aug 2000
Hmm.. I'm no flash guy. But I think small boxes occur when characters are not supported in a font (incomplete character set). Are you using a font that is known to be installed on Macs?
Mark Hensler
If there is no answer on Google, then there is no question.
Busy posted this at 09:57 — 28th February 2004.
He has: 6,151 posts
Joined: May 2001
i had the same problem few days ago (just happened to single quotes), never found a fix but think it something to do with the combination of strip_tags(), htmlspecialcharacters(), and add/strip slashes() I was using, in the end I just used preg_replace as I want to stop the use of symbols etc as well
this was just on windows xp running apache/php/mysql
TonyMontana posted this at 18:30 — 28th February 2004.
They have: 218 posts
Joined: Apr 2001
>Are you using a font that is known to be installed on Macs?
The client entered the text into my content management system using a mac and the problem was occuring on 'single quotes' as busy experienced. I tried something like this:
$tex = str_replace("'", "'", $tex);
...which didn't work, could preg_replace be used instead?
Thanks,
TM
TonyMontana posted this at 19:26 — 28th February 2004.
They have: 218 posts
Joined: Apr 2001
Also, apostrophe in question looks different in the form field. It's not straight like I'm used to seeing. I've asked the client if he is using a text editor with 'non-ascii characters' (no expert on that one).
TM
Busy posted this at 23:46 — 28th February 2004.
He has: 6,151 posts
Joined: May 2001
not sure about str_replace but try $tex = str_replace("\'", "'", $tex);
Busy posted this at 23:56 — 28th February 2004.
He has: 6,151 posts
Joined: May 2001
they could be using (`) below the esc button, left of the number 1 button instead of (')
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.