Tuesday, January 26, 2010

Displaying apostrophes

Hi all,

I have currently developed a new problem in my website.
When storing a name into the database wich contains an apostrophe
( ' ), it stores this in the DB as ' the ASCII code for it.
(that's Amperand, Poundsign, 39, semicolon in case googlegroups parses
it also)

Now some of my pages parse this correctly and display the apostrophe,
some display the ASCII code. I can't find what makes it display it
differently on some pages and not on the others... Even escaping it
with a \ just makes it display \' on one page and \$#39 on the other.

Both get the same data through the same model... Well, it's just
simply the same site, just consistently different per page... Any
clues what might be the problem?

Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.

You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en

No comments: