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 8400819
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T21:38:59+00:00 2026-06-09T21:38:59+00:00

Occasionally I get these errors occurring: An invalid character was found in the mail

  • 0

Occasionally I get these errors occurring:

An invalid character was found in the mail header: '‎'

which didn’t make any sense, upon investigation it seems there’s some invisible character in there.

I know which user this is, so I select them from the DB:

select email from user where email = 'their@address.com'

the user’s email appears as their@address.com, but copying it into a text editor, shows a wierd leading char:

enter image description here

So why does the sql equality operator match, when it isnt the same string? because its some invisible char?

If I save just that leading char in the text file as unicode and open it in a hex editor, I see this:

FF FE 0E 20

Update: the offending bytes are:

E2 80 8E

What is this crazyness, how did it get there?

How can I prevent this in future, and how can I clean my database (as there are a few of these)

These are the relevant headers from when the user was created:

Content-Type: application/x-www-form-urlencoded
Accept: application/json, text/javascript, */*; q=0.01
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8

Thanks

  • 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-06-09T21:39:00+00:00Added an answer on June 9, 2026 at 9:39 pm

    The bytes FF FE are U+FEFF BYTE ORDER MARK in UTF-16BE encoding, and 0E 20 are U+200E LEFT-TO-RIGHT MARK in the same encoding. At the start of a file, they are harmless, at least if the content is in a left-to-right writing system, like the Latin alphabet.

    I cannot make a guess on their origin, especially since I didn’t quite get what file is being discussed and how it was created (from a form post? from the database? some other way? how?).

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

Sidebar

Related Questions

I occasionally get errors in my aspx files which are caused by problems with
I have an image uploader and cropper which creates thumbnails and I occasionally get
When I run DB.SubmitChanges(); I occasionally get an error that reads: Row not found
There seems to be a lot of these errors found on the forum, but
I occasionally get some issues with Visual Studio and ReSharper that causes me to
I'm building a file management app, and I occasionally get the following error while
I occasionally find that it would be useful to get the printed representation of
Occasionally in our lab, our postgres 8.3 database will get orphaned from the pid
Very occasionally, despite all testing efforts, I get hit with a bug report from
I'm messing around with some windows functions using p/invoke. Occasionally, I get an error

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.