문제

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