in Php how to remove emoji code?

断了今生、忘了曾经 提交于 2019-12-10 12:18:26

问题


Users sometimes input some emoji in my BBS, but I am using MySQL version 5.0 which cannot store emoji code (as UTF).

I can not upgrade MySQL to 5.5 right now, so is there any safe way to filter the emoji code?


回答1:


First, I don't know how to remove emoji code.

If you can't upgrade to mysql5.5, storing your text using the blob type will resolve your problem.



来源:https://stackoverflow.com/questions/8676005/in-php-how-to-remove-emoji-code

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!