Tuesday, January 26, 2010

Re: Displaying apostrophes

Is there something different about your different pages? Like encoding. For example are you maybe not encoding a page as "text/html" for the content type? I doubt this is the problem though, since the entity ' should work for XML also. But it may be a possibility.

Nathan

On Tue, Jan 26, 2010 at 5:05 AM, Céryl <c.a.h.wiltink@student.tue.nl> wrote:
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 &#39; 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



--
Nathan Lane
Blog, http://blog.nathandelane.com

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: