Вопрос

What's the simplest way to write and, then, read Emoji symbols in Oracle table?

Currently I have this situation:

  • iOS client pass encoded Emojis: One%20more%20time%20%F0%9F%98%81%F0%9F%98%94%F0%9F%98%8C%F0%9F%98%92. For example, %F0%9F%98%81 means 😁;
  • Column type is nvarchar2(2000), so when view saved text via Oracle SQL Developer it looks like: One more time ????????.
Это было полезно?

Решение 2

After all, we do BASE64 encoding/decoding of the text. It’s suitable for small texts.

Другие советы

This seems more a client problem than a database problem. Certain iOs programs are capable of interpreting that string and show an image instead of that string.

SQL Developer does not do that.

As long as the data stored in the database is the same as the data retrieved from the database, you have no problem.

In MySQL the character set needs to be set to UTF-16 to be able to save emojis, I assume Oracle would need the same ch

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top