$form->bind($data, $item) error with utf8

$form->bind($data, $item);
if ($form->isValid()) {
    print_r($item->name); exit;
}

Data Post is ['id' => 1, 'name' => 'Trương Quốc Long'] When call $form->bind is $item->name is TrongQucLong. It lost utf8 format. It a bug?



1.7k
edited Feb '15

bind deals with strings and i dont think its utf8 enabled. you might have to encode it using urlencode =d

http://docs.phalconphp.com/pt/latest/api/Phalcon_Escaper.html

basically the data is automatically escaped. i think u need mbstring if you dont encode it. =d