I'm using SimpleDB for my application. Everything goes well unless the limitation of one attribute is 1024 bytes. So for a long string I have to chop the string into chunks and save it.
My problem is that sometimes my string contains unicode character (chinese, japanese, greek) and the substr()
function is based on character count not byte.
I tried to use use bytes
for byte semantic or later
substr(encode_utf8($str), $start, $length)
but it does not help at all.
Any help would be appreciated.