On Feb 9, 8:38 am, "Alex" <[EMAIL PROTECTED]> wrote:
> Hi everybody,
>

> Why does Cakes helpers sometimes use htmlspecialchars and sometimes
> htmlentites? For some german (and other) chars is this very important.
>
> Greetings,
> Alex

Both htmlspecialchars and htmlentities take a third parameter that is
the charset. In cake this parameter is ignored and defaults to
ISO-8859-1. In the case of htmlspecialchars this shouldn't make any
difference, since the characters that are converted (<>&") fall in the
ascii range.
htmlentities as far as I can tell is only used once in the html helper
but is not normally called (and it looks like it has a bug 1.2).
So I doubt this functions are the cause of any encoding problem.
Why do you think they are important for german chars?


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to