What do these '=?utf-8?' sequences mean in python?

Chris Green cl at isbd.net
Sat May 6 10:58:15 EDT 2023


Chris Green <cl at isbd.net> wrote:
> I'm having a real hard time trying to do anything to a string (?)
> returned by mailbox.MaildirMessage.get().
> 
What a twit I am :-)

Strings are immutable, I have to do:-

    newstring = oldstring.replace("_", " ")

Job done!

-- 
Chris Green
·


More information about the Python-list mailing list