You are currently viewing How to convert emoji to binary representation?

How to convert emoji to binary representation?

I was trying to convert a string to binary and I was able to do so using text.toByteArray().joinToString(separator = ” “) and then I would convert the integers to binary. But when I try to convert an emoji to binary, the integers are negative. Why does this happen and can someone tell me how to fix it?

submitted by /u/SuccessRich
[link] [comments]