I need send data sms. sms contains values from 0x00 to 0xff. I have a data in normal string, but function sms_send() requests unicode string. Converting data string to unicode string return error.
My provisionally solusion is to fill one unicode char with two chars. Then sms send with 'UCS2' flag. But is not good way. UCS2 is for char encoding not for data.Code:import messaging s='\xff' messaging.sms_send(u'777123456',s,'8bit')