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

  • SEARCH
  • Home
  • 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 6823713
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:48:56+00:00 2026-05-26T21:48:56+00:00

I am reading the mail body using streamReader with ASCII encoding type but the

  • 0

I am reading the mail body using streamReader with ASCII encoding type but the text received is in plain text format. It also contains some special characters like =92,=93,=94,=20 etc which does not resemble to html endoding. Also hyperlinks are converted to text like http://www.google.com http://www.google.com/

I debug the stream.getline function and find these lines containing content-Type, the first and second lines are before and after subject and third one is just before body of mail. Neither of three contains text/html.
Please advice what to do.

1. Content-Type: multipart/related; boundary=0015174479b83c0db404b1bf7ace
2. Content-Type: multipart/alternative; boundary=0015174479b83c0db104b1bf7acd
3. Content-Type: text/plain; charset=ISO-8859-1

Also please find the mail which I am reading:

Spammy title:
Spammy Body
Go to {spammy hyperlink}

The data in streamReader in get is:
Spammy title:** Spammy Body Go to spammydomain *

I don’t know why the * is attached at begining and end of every bold word/sentence and link is not treated as link.
also while debuging other mails I found that some characters are also replaced, here is the list I found.

"=85" replaces "..."   on every occurance
"=93"replaces "\""     on every occurance
"=94"replaces "\""     on every occurance
"=92" replaces "'"      on every occurance
"****\r\n" replaces "\n"   randomly
"=\r\n" replaces ""         randomly
"=20\r" replaces ""        randomly

I tried Html Encoding / Decoding but nothing successfull.

Can you please suggest any encoding type or method to remove all the special characters and retain its html format.

  • 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. Editorial Team
    Editorial Team
    2026-05-26T21:48:57+00:00Added an answer on May 26, 2026 at 9:48 pm

    Maybe you should start digging in some RFCs. I suggest:

    RFC 822, "STANDARD FOR THE FORMAT OF ARPA INTERNET TEXT MESSAGES", https://www.rfc-editor.org/rfc/rfc822

    RFC 2047, "MIME (Multipurpose Internet Mail Extensions) Part Three Message Header Extensions for Non-ASCII Text", https://www.rfc-editor.org/rfc/rfc2047, and especially the 4.2. section about "The "Q" encoding" which I believe should details the "special characters" like =92, =93, etc…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created one application which is reading outlook mail, but when user install
I am reading mails using Interop.Domino dll but in few cases my program hangs
I installed today from Market, the Yahoo Mail application and I was reading it
I'm having trouble on reading my inbox in gmail using Oauth 2.0. I'm using
I have a requirement of reading subject, sender address and message body of new
I have this code. It's from the Zend Reading Mail example. $message = $mail->getMessage(1);
I am trying to send a message using PHPs mail library called Swiftmailer .
Hi I have been reading alot of articles adoring the PEAR mail package and
I'm getting a 'could not instantiate mail function' error from PHPMailer. From reading around,
I am using james2.3.2 to be my mail server and the backend is mysql

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.