french capitals : acute/grave/circumflex...

Hey !

I use the tutorial “Server Side Highscores” to load text in Unity throught a server. It works fine, but i’ve a problem with differents french’s capitals : éèàùç. When i use them, unity load a blank text so nothing…

Did you have an idea how to resolve this…?

thx

ok i found the problem… utf8 encoding…

so i put this in my php :

mysql_query("SET NAMES 'utf8'");

it works fine now…

juste another question about this tutorial…

Yet you load the total scores “hs_get = WWW(highscoreUrl)” in one GUI but if i want to load in an separate GUI the “name” and the “score”, how can i do…?

thx !!!

no ideas ?

Yet i do this way : one PHP page for each value to load. it works but it’s a litte bit complicate…

If someone know another way i 'll very appreciate it !! :smile:

thx !!!

If I understood the question, you can put multiple methods in a php file and call those to get different data.

<?php

function GetName() {
// ...some code
return someName;
}

function GetScore() {
// ...some code
return someScore;

?>

ok thx
I have use another way which works fine too :

in Unity, i call the php by this way ;

...
 var get_Name=ComentUrl +  "?mySearch=myName";
hs_get = WWW(get_Name);
...

and in Php :

<php
... blablabla
$myFind=$_GET['mySearch'];
.... balblabla
$myName=$row[name];
echo $($myFind);
?>

But i have still a problem with special character in Unity. To display my result, I use a code like this :

<php
...
$commentaire="[b]".$row['titre_coment']."[/b]\n\n posté par : ".$row['nom']." ( ".$row['email']." ) le".$row['Date_comment']."\n\n".$row['message_coment']."\n----------------------------------------------------------\n";
....
?>

the database result is in UTF8 encoding, so no souci ! but…

First problem : the é from the word posté, which block the result
Second problem : it is possible to use html balise in unity with php code…? like

I know, it’s more a php problem than a Unity problem, but if someone have an idea…

merci !!