Skip to main content
Known Participant
November 16, 2014
Answered

Can you send/receive unicode in sockets in AS3?

  • November 16, 2014
  • 1 reply
  • 338 views

Gidday

I'm connect ing to another app using sockets, and we've discovered that we need to set up my end so that it sends and receives unicode, as it doesn't seem to be doing so by default.

Is it possible, and if so, what do you change or set up?

Thanks for your time and help.

This topic has been closed for replies.
Correct answer dmennenoh

You can use socket.writeMultiByte to write unicode.

It's like: socket.writeMultiByte("My string", "unicode");

Here's a list of all supported character codes:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/charset-codes.html

1 reply

dmennenohCorrect answer
Inspiring
November 17, 2014

You can use socket.writeMultiByte to write unicode.

It's like: socket.writeMultiByte("My string", "unicode");

Here's a list of all supported character codes:

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/charset-codes.html

Known Participant
November 17, 2014

Perfect - thank you mate!