meek,

Thanks for your response. It is certainly what is happening to me,
using the view files generated by bake. The UTF character would be
shown as 中

The '&' character is converted to HTML entity.

This happens to me at least in $html->input and $html->selectTag. I did
not test other functions.

For input, it is fixed by simply adding the 'value' attribute, ie.:
<?php echo $html->input('Node/name', array('size' => '60',
'value'=>$this->data['Node']['name']));?>

from the original problematic:
<?php echo $html->input('Node/name', array('size' => '60');?>


meek wrote:
> I'm probably missing something, but are you sure this is a problem with
> the html helper? I just built a form using it and had no problems with
> chinese characters in field values being turned into entities (I always
> use UTF-8). As far as I can see, the html helper will only
> automatically turn a few characters into entities using the
> 'htmlspecialchars' function. In fact it's only the 'link' function that
> uses 'htmlentities' - and that can be turned off as noted above.


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