How to set utf8 in the auto-generated PHP code of flash builder 4 ?
- by Mark
HI,
PHP problem here (I think):
I've just created a Flex (Flash Builder) project with a datagrid linked to a database - the database is all utf8.
When I run the project using the auto-generated code in flex4,
the non-English part comes like ????? while the English part comes fine.
The auto-generated PHP code uses mysqli.
I've tried:
$this->connection->set_charset('utf8');
or
mysqli_query($this->connection,"SET NAMES utf8");
I also tried writing the code myself (I'm not a PHP guy):
mysql_query("set names utf8");
was fine - but that's mysql and not mysqli (that's an "i" after the mysql) and I want to use the auto-generated code...
any help is appreciated.