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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:20:42+00:00 2026-05-23T09:20:42+00:00

Basically, I have a form that restaurant owners can fill out that (among other

  • 0

Basically, I have a form that restaurant owners can fill out that (among other things) asks for the business name.

If something like “Foobar Café” is entered, it is stored in the MySQL database as “Foobar Café”. Why is it doing that?

Both the HTML page and database table are set to UTF-8 encoding (the “business_name” field has a collation of “utf8_unicode_ci“). Shouldn’t that take care of everything? What exactly could be causing the special character "é" (&etilde;) to be stored in the database as "é"? It makes no sense.

  • 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-23T09:20:42+00:00Added an answer on May 23, 2026 at 9:20 am

    I’m guessing it is from the form not mysql since the email comes from there. Look into that. Maybe you have a ”pre processor” of some sort.

    Just wondering, why do you store html chars when you will be displaying that info to users? That’s a recipe for disaster. XSS.

    A quick fix, try using htmlentites on the data with uft-8 turned on. Send the email as html and you should be fine.

    However, try to find the cause of the issue.

    Edit.
    echo htmlentities($str, ENT_QUOTES, “UTF-8”);

    That should solve your issue. Charset for utf 8 must be defined

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

Sidebar

Related Questions

I have a form that (amongst other things) contains 2 multi-select listboxes. Basically you
I have a form that, among other things, accepts an image for upload and
I have a form that is basically a calculator. you can type an equation
I have a main form that users fill out, and at the bottom there
I am working on some code, basically I have a form. On that form
I have a form wizard that contains 3 forms. Basically, what I am trying
I have a report that is basically a form with multiple empty fields and
I basically have a form inside of Flash that I need to submit to
Basically I have a page named dvds.asp with a form that goes to action=process.asp
I have a Form that has a button on it. The button basically copies

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.