2

When saving smiley-faces sent from iOS phone into sql server it changes the emoji to questionmarks like this ?? instead. this normal happy face :) works fine to save in sql server db but some others dont. Anyone else done this before and maybe could help me out or put me in the right direction? Thanks alot!

Mattias
  • 2,929
  • 5
  • 29
  • 46

2 Answers2

0

you can encode the string with base64Encodeing ,then insert the result into database

cydiyo
  • 3
  • 2
  • This is a bad idea because you lose any and all abilities to search and index a column. – Dai Sep 03 '17 at 03:17
-2

Try to convert the column that contains emoji to utf8mb4 as answered in this post. https://stackoverflow.com/a/8109948/546954

Community
  • 1
  • 1
Shali Liu
  • 1,174
  • 13
  • 23