Unicode

BlitzMax Forums/BlitzMax Programming/Unicode

Retimer(Posted 2010) [#1]
First time trying to play with this in blitz to support unicode messages for my game.

My client is in flash, so manually the strings are made and sent in a byte array (2 bytes per character). Is there a simple function with the new unicode support to convert the byte array into a unicode string?

Edit: Also, is there writestring/readstring functions for streams to write unicode?


Brucey(Posted 2010) [#2]
2 bytes per character

UTF-16?
Depending on the endianness of those 2-byte characters, it might translate straight into a BlitzMax String.


Retimer(Posted 2010) [#3]
Thanks


SebHoll(Posted 2010) [#4]
String.FromWString() will convert from a Short Ptr to a BlitzMax String.