What does PHP do with the emoji characters on the mobile side?
Source: Internet
Author: User
How does PHP handle the emoji characters submitted by mobile?
Now the mobile side provides a lot of expressions, such as Baidu Input method in the expression.
A lot of expressions in PHP, after it is not recognized content, when stored in MySQL, it will start from the expression position, the contents of the back will be lost.
such as user input: Start content [Emoticons] End content
Get it in PHP and save it in MySQL only: start content [
Is there any way to remove these unrecognized expressions without affecting the content behind them?
For example, if the expression above is not recognized, it also wants to be able to be stored in MySQL: start content [] End content
------to solve the idea----------------------
Required to set the MySQL character set to Utf8mb4
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.