Yup meek. I did extend my own class. I do not like to hack files in
cake directory as well.

The problem here is because of MySQL integration. When data is grabbed
straight away from MySQL, it is grabbed as string of UTF-8 numbers
(with the &#). The h() function would have change the & to HTML entity
(&) instead of passing it directly to the the browser as a whole
UTF-8 character.

I hope I explained it clearly.

BTW, the 3 chinese characters mean 'interaction group'. Nothing rude
here. :)

On Dec 18, 9:48 pm, "meek" <[EMAIL PROTECTED]> wrote:
> Glad you found a solution, but I'm still confused. Maybe it's something
> to do with bake which I haven't used.
> if i put this in a view:
>
> <?php echo h('交流群');  // Don't know what that means . Hope it's
> polite ?>
>
> I don't get any entities.  As I wrote above, AFAIK, the
> htmlspecialchars function -  the function used in 'h' - only replaces a
> few entities (ampersand, corner brackets etc).
>
> I think it's good to avoid changing anything in the cake directory, and
> I think the h() function is in there for a good reason. Another way of
> solving the problem might be to extend the HtmlHelper with your own
> class:
>
> http://groups.google.de/group/cake-php/browse_frm/thread/75e0d9ae6ad6...
>
> - You could override the methods that are causing you problems, or add
> new methods with the required functionality.


--~--~---------~--~----~------------~-------~--~----~
 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