Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 43673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T15:31:56+00:00 2026-05-10T15:31:56+00:00

I have an email subject of the form: =?utf-8?B?T3…..?= The body of the email

  • 0

I have an email subject of the form:

=?utf-8?B?T3.....?= 

The body of the email is utf-8 base64 encoded – and has decoded fine. I am current using Perl’s Email::MIME module to decode the email.

What is the meaning of the =?utf-8 delimiter and how do I extract information from this string?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T15:31:56+00:00Added an answer on May 10, 2026 at 3:31 pm

    The encoded-word tokens (as per RFC 2047) can occur in values of some headers. They are parsed as follows:

    =?<charset>?<encoding>?<data>?= 

    Charset is UTF-8 in this case, the encoding is B which means base64 (the other option is Q which means Quoted Printable).

    To read it, first decode the base64, then treat it as UTF-8 characters.

    Also read the various Internet Mail RFCs for more detail, mainly RFC 2047.

    Since you are using Perl, Encode::MIME::Header could be of use:

    SYNOPSIS

    use Encode qw/encode decode/; $utf8   = decode('MIME-Header', $header); $header = encode('MIME-Header', $utf8); 

    ABSTRACT

    This module implements RFC 2047 Mime Header Encoding. There are 3 variant encoding names; MIME-Header, MIME-B and MIME-Q. The difference is described below

                  decode()          encode()   MIME-Header   Both B and Q      =?UTF-8?B?....?=   MIME-B        B only; Q croaks  =?UTF-8?B?....?=   MIME-Q        Q only; B croaks  =?UTF-8?Q?....?= 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 66k
  • Answers 66k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer It's so easy to get caught up in the fun… May 11, 2026 at 11:35 am
  • added an answer I have referred several books and this book is great.… May 11, 2026 at 11:35 am
  • added an answer IIS makes use of the multiple cores automatically (although you… May 11, 2026 at 11:35 am

Related Questions

I have an email subject of the form: =?utf-8?B?T3.....?= The body of the email
I have an internal customer that only receives his email report from MS Report
I have a string from an email header, like Date: Mon, 27 Oct 2008
I have a module that sends an email to a specified email address but
I have an object. fp = open(self.currentEmailPath, rb) p = email.Parser.Parser() self._currentEmailParsedInstance= p.parse(fp) fp.close()
I have some client side code that uploads an Outlook email to a document
using the Code Snippet for sending email in VB.Net I have successfully sent an
After user places an order I have to send detailed email message containing order
I have an App that will send authenticated emails using System.Net.Mail and System.Net.NetworkCredential my
I have a JLabel which has an e-mail address in it. I used HTML

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.