iPhone emoticons insert into MySQL but become blank value

前端 未结 2 845
眼角桃花
眼角桃花 2020-11-27 19:48

We are developing an iPhone app that would send emoticons from iPhone to server-side PHP and insert into MySQL tables. I am doing the server-side work.

But after ins

相关标签:
2条回答
  • 2020-11-27 20:17

    Some of the emoji characters work with older non-blobed mysql configurations because they are encoded using a 3 byte codepoint and mysql can store a 3 byte character. If you cannot upgrade mysql nor use blobs for whatever reason, you can scrub out 4 byte codepoints and keep the 3 byte ones.

    If your computer has emoji capabilities, here is a list of the 3 byte iOS emoji characters:

    ☺❤✨❕❔✊✌✋☝☀☔☁⛄⚡☎➿✂⚽⚾⛳♠♥♣♦〽☕⛪⛺⛲⛵✈⛽⚠♨1⃣2⃣3⃣4⃣5⃣6⃣7⃣8⃣9⃣0⃣#⃣⬆⬇⬅➡↗↖↘↙◀▶⏪⏩♿㊙㊗✳✴♈♉♊♋♌♍♎♏♐♑♒♓⛎⭕❌©®™

    0 讨论(0)
  • 2020-11-27 20:19

    Most iOS emojis use code points above the Basic Multilingual Plane of the Unicode table. For example,

    0 讨论(0)
提交回复
热议问题