Data from oracle in utf-8 with php

前端 未结 3 1522
-上瘾入骨i
-上瘾入骨i 2020-12-18 01:16

i have a problem about getting data from oracle database. How to get data in utf-8? browser shows symbols with echo, but data from oracle has ? marks instead of letters

3条回答
  •  情歌与酒
    2020-12-18 01:41

    Use this to make database connection:

    $conn = oci_connect(username,pass, $tns2 , 'AL32UTF8')
    

提交回复
热议问题