问题
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