I need to write a synchronisation between records in SQL Server and our CMS. Everything works fine, but a few records have weird characters.
When I look them up in SQL Management Studio I can see the value "Anselm Grün". When I execute the query in PHP PDO the value is "NULL"
PHP code to execute the query:
    function getResultFromSqlServer($queryString){
    $db = new PDO('odbc:Driver=ODBC Driver 11 for SQL Server; Server=****,1433; Database=Winbooks; UID=****; PWD=****');
    $query = $db->query($queryString);
    $result = array();
    while ($row = $query->fetch()){
        $result[] = $row;
    }//while
    return $result;
}//getResultFromSqlServer
Query:
SELECT name1 as 'Naam', insleep as 'Slapend',
       c_webshop as 'Webshop', tr_groep as 'Groep',
       tr_subgroe as 'Subgroep' 
FROM art 
WHERE (tr_subgroe LIKE '".$logisticsCode."%' 
       OR tr_groep LIKE '".$logisticsCode."%') 
      AND insleep = 0 
ORDER BY name1
(I know I should use prepared statements, but this is only for testing purposes)
Many thanks in advance!
 
     
    