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!
Asked
Active
Viewed 4,873 times
2 Answers
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
-
3This answer is for MySQL, the question is about SQL Server, there is no utf8mb4 in SQL Server – MaxiWheat Nov 03 '16 at 14:55