httplib.array.fromunicode

array.fromunicode(ustr)

Extends this array with data from the unicode string ustr. The array must be a type ‘u’ array; otherwise a ValueError is raised. Use array.fromstring(ustr.decode(...)) to append Unicode data to an array of some other type.