How to set utf8 in the auto-generated PHP code of flash builder 4 ?
Posted
by Mark
on Stack Overflow
See other posts from Stack Overflow
or by Mark
Published on 2010-06-15T15:25:56Z
Indexed on
2010/06/15
15:42 UTC
Read the original article
Hit count: 224
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.
© Stack Overflow or respective owner