The solution of using Oracle Chinese as a question mark garbled under Yii

Source: Internet
Author: User
Tags yii



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.


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.