I have a string that looks like this “=?utf-8?Q?Wayne?= wayneg@golding.gen.nz” which is an address in a to field on an email downloaded from an IMAP server. I can see that the bits between =? and ?= are utf-8. Is there any easy way to convert this?

Developing on Windows & in English I’ve ignored the entire subject of encodings to date.

you may want to have a look to MIME (Multipurpose Internet Mail Extensions) Part Three: Message Header Extensions for Non-ASCII Text

Specifically, section 4.2 “Q” encoding.

Thanks guys for this.