In the configuration file, the following configuration is typically used:
'db_oracle'=Array ('class'='cdbconnection', 'connectionString'='oci:dbname= server address/service name', 'username'=' User name', 'Password'='Password', 'CharSet'='UTF8', 'enableparamlogging'=true, ),
I tried tens of thousands of times, looking for n-Long data, is no, found in the thinkphp is nothing special.
I search in Baidu "Yii Oracle Chinese garbled", no results. Are some of the ways to troubleshoot.
has been very depressed, so with a search, the key word "Yii Oracle CharSet", incredibly found the Yii official online an article
http://www.yiiframework.com/wiki/99/using-yii-with-oracle-through-pdo/
Then I'll change my ' connectionString ' to the following code, OK. ~
' connectionString ' = ' oci:dbname= service address/service name; Charset=al32utf8 ',
The charset parameter doesn't work when using Oracle--!!! It has to be written like this. I'll go. It's a hidden boss.