The problem occurs when there are accented characters in an utf8 database (particularly common in french).
The generated service works properly, but cannot be tested in Test Operation view.
Flash Builder displays an error advising to encode the content with the php method utf8_encode ()…
Oh ? Really ?
After some test I remember what I always do before performing queries… And what is not in the Flash Builder generated service… Character set definition.
$stmt = mysqli_prepare($this->connection, "SET NAMES UTF8;"); $this->throwExceptionOnError(); mysqli_stmt_execute($stmt); $this->throwExceptionOnError(); |
To put in the constructor.