Hello to all,
I am developing an APP that needs to read datas from a MySQL database and I am using some PHP script in the PC server for to read datas from the table and then the result is send to B4A in JSON format.
All works fine, but when in a field there is a string with UTF-8 char, it don't work
The problem isn't B4A, but is that PHP don't work properly.
I have found the solution, I need to use this command in PHP script:
but it works only on PHP version 5.4 and upper, and my servers are running with version 5.3.xx and I can't update it
How can do it ??
And when I solve the problem, and the string "papà" is send as "pap\uxxxx", B4A will work properly ???
Thanks
Sergio
I am developing an APP that needs to read datas from a MySQL database and I am using some PHP script in the PC server for to read datas from the table and then the result is send to B4A in JSON format.
All works fine, but when in a field there is a string with UTF-8 char, it don't work
The problem isn't B4A, but is that PHP don't work properly.
I have found the solution, I need to use this command in PHP script:
B4X:
echo json_encode($myarray, JSON_UNESCAPED_UNICODE);
How can do it ??
And when I solve the problem, and the string "papà" is send as "pap\uxxxx", B4A will work properly ???
Thanks
Sergio