Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
EasyXDM fails when large unicode text (Japanese) is being used on IE7 #134
on IE7 if you are using EasyXDM Flash Transport, it fails to transfer large unicode text.
This is because... unicode characters such as Japanese use 2 byte characters rather than single byte ASCII characters. Because of this even though we break the messages into multiple chunks of 40000 each (refer to The solution is in https://github.com/oyvindkinsey/easyXDM/blob/master/src/flash/net.easyxdm.flash/Main.as maxMessageLength value
And since Action Script's LocalConnection.send supports only upto 40KB... the chunks fail to transfer data
You might want to change maxMessageLength from 40000 to lesser i.e. about 35000 or provide a method to dynamically assume somewhere less than 40000.
In theory all of the characters could be multi-byte characters, and so just using 35000 isn't a viable option.
Maybe someone with more AS experience (and more time) could take a look at this?