headers = dict((k.encode('ascii') if isinstance(k, str) else k, v.
    encode('ascii') if isinstance(v, str) else v) for k, v in list(br.
    request.headers.items()))
How do I post non-ASCII characters using httplib when content-type is "application/xml"