My host changed the server from Windows to Linux and the problems started.
The problem is with “special characters” like šđčćž and inserting them into the database.
First problem, which I solved was that the existing data (usernames) were not displayed as they should it they contained special chars.
This was solved by inserting the following code into the PHP:
$mysqli->query(“SET NAMES ‘utf8’”);
Now the problem is when I try to insert the šđčćž into the database.
The text is entered into the Corona native.newTextField and here it shows OK.
Then I call the PHP with this:
params.body = “playerName=” … me.username
network.request(PHP_URL_SELECT_LEADERBOARD, “POST”, networkListenerGame2, params)
The database collation is utf8_general_ci.
Tried to add this
$mysqli->set_charset(‘utf8’);
but doesn’t help.
Please help!
P.S. It worked perfect while the db was on the Windows server