Php to code the data exported from oracle to mysql. the data section in oracle is displayed. Incorrectstringvalue: '\ xE6 \ xBB \ x9A \ xE5 \ x8A \ xa8... 'forcolumn' intro' atrow1. How can we implement effective encoding conversion? iconv and mb_co php convert encoding.
Import data from oracle to mysql. the data section in oracle shows the Incorrect string value: '\ xE6 \ xBB \ x9A \ xE5 \ x8A \ xa8... for column 'Intro' at row 1.
How can we implement effective encoding conversion? such iconv and mb_convert... all require character parameters. The mb_detect_encoding detection is also inaccurate. how can this problem be solved?
------ Solution --------------------
What type is intro? I think iconv is very useful.
------ Solution --------------------
Your data is UTF-8
What is your oracle code?
------ Solution --------------------
However, \ xE6 \ xBB \ x9A \ xE5 \ x8A \ xA8 is UTF-8 encoded.
ScrollTwo words
Have you set the character set for connecting to oracle?
------ Solution --------------------
The encoding of both your databases is UTF-8, so you do not need to read the data before encoding and conversion.
1. is the operation page UTF-8?
2, access the oracle database, the connection character set to be set to UTF-8
3. operate the MYSQL database.
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