1

I'm curious is this possible. I want to send an SMS message from a web application (AngularJS) and want to be able to send emojis. Is it possible to send the emoji as it's unicode representation as plain text

Example: Hello U+1F601 Would display: Hello

Obviously sending this as text will not work. I'll just recieve Hello U+1F601

Is this possible by somehow prefixing or wrapping the unicode somehow?

JKX
  • 177
  • 2
  • 15
  • 1
    See http://stackoverflow.com/questions/21014476/javascript-convert-unicode-string-to-javascript-escape for a discussion of unicode and Javascript – OverlappingElvis Oct 02 '15 at 18:32
  • Follow on question if I was to send that hex on my phone would it display as an emoji? – JKX Oct 02 '15 at 18:36
  • How are you actually sending the SMS? Whatever service you're passing the string to should handle the encoding... – OverlappingElvis Oct 02 '15 at 18:39
  • I'm not sure of the capabilities of the service that is being used (mblox). I'm just curious as a starting point if I could send a string of text on my phone that would be translated to an emoji by the reciever – JKX Oct 02 '15 at 18:41
  • Having researched a little more the character sets they support are GSM 03.38 encoding and Latin 1 (ISO-8859-1) encoding Guessing this might mean no dice – JKX Oct 02 '15 at 18:45
  • Have you tried actually sending that encoded character? – OverlappingElvis Oct 02 '15 at 18:46
  • Haven't tried yet, this idea came to me when I left the office – JKX Oct 02 '15 at 18:46

1 Answers1

0

You should be able to do it - although the platform you are using may not support it.

Emoji are in the unicode standard (UTF-16) http://unicode.org/emoji/

Although not all emoji are supported by all phones (so the receiver's device may use an SMS app that cannot properly translate the emoji)

Jim
  • 10,172
  • 1
  • 27
  • 36
  • 1
    This doesn't answer the question – Pian0_M4n May 23 '20 at 12:48
  • Why do you say that? There isn't a need or requirement to wrap a Unicode character, nor would it help unless the target platform is known and specific. I've written text messaging apps, and it works. Although some platforms support different Unicode Emoji characters, as I mentioned – Jim May 25 '20 at 02:47