I am getting smilies as an input from the user.
val emojis="😃😜😍"
I want its unicode to store in DataBase. in my console it is printing like this
😃😜😍
may be question is unclear
i want like this 😃
to \u263a;
I think you're looking for U+263A. The best way to represent this in source code is with a Unicode escape sequence:
val smiley = "\u263a";
You then need to check that:
Given the number of ways in which it can go wrong, it's important to work out exactly where any problems are - which usually involves checking the UTF-16 code unit within the string you're trying to display, rather than just going straight for "does it display properly".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With