Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Can you send/receive unicode in sockets in AS3?

Explorer ,
Nov 16, 2014 Nov 16, 2014

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.

TOPICS
ActionScript
300
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Enthusiast , Nov 17, 2014 Nov 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

Translate
Enthusiast ,
Nov 17, 2014 Nov 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 17, 2014 Nov 17, 2014
LATEST

Perfect - thank you mate!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines