mohit_ranka wrote:
I am getting unknown encoding like, "=?Utf-8?B?QWRyaWFu?=
<adr...@discussions.microsoft.com>" (quotes for clarity) for name of
the author from nntplib module. which seems like an encoding issue
with NNTPLib module.

What should i do to get author name information in human readable
format.

The original text was encoded in UTF-8 and then into base-64:

=?Utf-8?B?QWRyaWFu?=
  ^^^^^ UTF-8

=?Utf-8?B?QWRyaWFu?=
        ^ Base-64

So that's:

>>> "QWRyaWFu".decode("base-64").decode("Utf-8")
u'Adrian'
--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to