I am working with php to insert a line in sql server with odbc but I have this problem with french accents ( é , â , ô , î , è ,...), when I insert inside sql server it works and also php reads it well, but when inserting using odbc it is read as a special character
Example:
$sujet = 'BEM relevé bancaire';
$sql ="INSERT into matrice values('$groupe','$sujet','$nom','$ref','$ref','$next')";
odbc_exec($connection, $sql);
Output:
ID: 542
groupe: Groupe_name
CI: BEM relevé bancaire//THE PROBLEM
Nom: Name
affectationRef: 1
restAffect: 1
nextAffect: 0
How can I make it reads the french accents ?
The possible duplicate doesn't answer my question unfortunately