Regarding ORACLE character set, MYSQL has a very convenient SETNAMESUTF8. does ORACLE have similar statements? Thank you. the problem I encountered is that the database is ORACLE (GBK), the PHP page is UTF8, and the encoding format of the two cannot be changed. Of course, iconv can solve the problem, but it is effective for the ORACLE character set problem.
MYSQL has a very convenient set names UTF8
Does ORACLE have similar statements? Thank you.
Currently, my problem is that the database is ORACLE (GBK), the PHP page is UTF8, and the encoding format of the two cannot be changed.
Of course, iconv can solve the problem, but the efficiency is relatively low. Thank you.
------ Solution --------------------
You can set the output character set when connecting to the database.
Resource oci_connect (string $ username, string $ password [, string $ db [, string $ charset [, int $ session_mode]
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