search

Home  >  Q&A  >  body text

Convert Chinese characters to character encoding in php

We are currently using json_encode to solve the problem, but we need to manually filter out the extra quotes.

Does PHP have a function that directly handles the conversion of UTF8 Chinese into character encoding?

Example: I u6211

phpcn_u1582phpcn_u15822759 days ago516

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-16 12:04:24

    Find the answer you want on Segmentfaultthis website, PHP realizes the mutual conversion between Unicode and Utf-8 encoding;

    reply
    0
  • Cancelreply