PHP transcoding Solutions

Source: Internet
Author: User
PHP transcoding
From the data portion of the Oracle conduction data to Mysql,oracle, the insert displays incorrect string value: ' \xe6\xbb\x9a\xe5\x8a\xa8 ... ' for column ' intro ' at row 1.
More effective encoding conversion how to achieve it, this iconv, Mb_convert ... have character parameters. Mb_detect_encoding detection is not accurate, what is the method?

------Solution--------------------
What type of intro is it? I think the iconv is very useful.
------Solution--------------------
Your data is utf-8.
What encoding is your Oracle?
------Solution--------------------
But \xe6\xbb\x9a\xe5\x8a\xa8 is utf-8 coded scrolling two words

Connect Oracle Are you setting the character set?
------Solution--------------------
Your two database is encoded in Utf-8, so you do not need to read and then encode the conversion.
1, the Operation page is Utf-8?
2, access to the Oracle database, the connection character set to UTF-8
3, the operation of MySQL database, the same.
  • 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.