This is my code:
odbc_exec($conn,"SET client_encoding='UTF-8'");
$viewTablo= odbc_exec($conn,"SELECT A FROM B WHERE A='ÇŞÖ'");
Odbc execute doesn't work with that 'ÇŞÖ' or any other Turkish character. How do I fix this?
Edit: I cannot change anything inside the database.
Code below is working.
else if ($i==23 && odbc_result($viewTablo,$i)=="(Seçilmemiş)")
{
echo '
<td>
<p class="text-xs text-center font-weight-bold mb-0"></p>
</td>';
Seems like it brings the result in utf-8 (or anything working) ,but anything I type on the .php file / input given inside the odbc_exec is not utf-8 (or whatever it needs) .
Besides, queries are working on the database itself.
I am open to any alternative to insert a 'ÇŞÖ' as parameter to database.
Thanks in advance.