oyvindkinsey/easyXDM — Issue #134: EasyXDM fails when large unicode text (Japanese) is being used on IE7
Author: heurion
Created: 2011-10-28 18:05:29+00:00
State: open

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
), the final bytes transferred will be more than 40000.

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.