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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T05:05:13+00:00 2026-06-03T05:05:13+00:00

Possible Duplicate: Special characters in PHP / MySQL I have a problem. I have

  • 0

Possible Duplicate:
Special characters in PHP / MySQL

I have a problem. I have a piece of text in my database (MySQL 5.5.20) with characters like ‘é’ and ” ‘ ” who aren’t displaying properly after executing the MySQL query and displaying it with echo($…). With every special character I’ve inputted in the database, it displays a small question mark inside a diamond. If I look at the text in the database itself, it is an ‘é’ and ” ‘ “, so I figured the problem isn’t MySQL.

One thing I could do is str_replace everything like ” ‘ ” –> “'” on input, but then I have to do this for every character there is.
Oh and I already have included

<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

and this didn’t work.

Hopefully you’ve all the information to help me, if not just say 🙂 Thanks in advance!

Milaan

  • 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-03T05:05:14+00:00Added an answer on June 3, 2026 at 5:05 am

    You need to have everything in utf-8:

    • The database field
    • The database connection (mysql_set_charset('utf8'); in classic mysql, something like $db->exec('SET CHARACTER SET utf8'); in PDO)
    • The content type (like you have already)
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: error when uploading string with special characters I have a string say
Possible Duplicate: PHP messing with HTML Charset Encoding We've come across special characters being
Possible Duplicate: preg_match php special characters Hi all, I want to check if these
Possible Duplicate: how to replace special characters with the ones they're based on in
Possible Duplicate: Read/write .txt file with special characters Im reading a file but I
Possible Duplicate: php using special symbols (<?php echo $row_pageDetails['profile']; ?>) If profile is empty
Possible Duplicate: PHP URL encoding retaining invalid url characters I use a form similiar
Possible Duplicate: Special (magic) methods in Python who can tell me what can call
Possible Duplicate: MySql: MyISAM vs. Inno DB! I am implementing a blog in php
Possible Duplicate: Is there any way to detect strings like putjbtghguhjjjanika? php check if

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.