NNTPlib encoding issue

M

mohit_ranka

I am getting unknown encoding like, "=?Utf-8?B?QWRyaWFu?=
<[email protected]>" (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.

Thanks and regards,
Mohit Ranka
 
M

MRAB

mohit_ranka said:
I am getting unknown encoding like, "=?Utf-8?B?QWRyaWFu?=
<[email protected]>" (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:
u'Adrian'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top