in reply to how to read data for every 280 character ?
Because you modified $data ? Because $data is unicode and 280 bytes is 276 chars in unicode?