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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:16:46+00:00 2026-06-13T07:16:46+00:00

Possible Duplicate: UTF-8 all the way through Searching high & low for a solution.

  • 0

Possible Duplicate:
UTF-8 all the way through

Searching high & low for a solution. I’ve tried many variations before posting the question.

What is required to have names appear the same in phpMyAdmin and html page? Can this even be accomplished?

EDIT 1: It would seem that this is a mysql issue. Why? Because the php generated html page will always show the correct characters. At this point it is only the database that shows incorrectly.

EDIT 2: Clarification. With the original settings shown in code snip and images below,

  1. Enter João and submit
  2. João displayed in database
  3. João display after reload

Adding the mysqli_query ( $link, 'SET NAMES utf8' )

  1. Enter João and submit
  2. João displayed in database
  3. Jo�o displayed after reload

end Edit 2

In a mysql database, viewed with phpMyAdmin:
database structure

The items appear in the database like this: (I’ve modified the first João to appear correct in database)

phpMyAdmin view of 2 entries of same name

And in the html page with encoding set the names appear like (order is reversed & modified has black diamond),

appearance in html page

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

I have tried changing the column collation to utf8_bin, utf8_general_ci, utf8_unicode_ci, all with no change to either side. Also changed the document (BBEdit) from UTF-8 to UTF-8 (with BOM), ISO Latin 1 and Windows Latin 1. Several of these created more black diamonds, making the issue worse. (Set to UTF-8 in images) I even tried to preg_replace ã, é etc with the encoded equivalents.

The short story is, João is entered on the page (content type above), João is in database, and João comes to the html page on refresh.

Looking for ideas. 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-13T07:16:47+00:00Added an answer on June 13, 2026 at 7:16 am

    Character set issues are often really tricky to figure out. Basically, you need to make sure that all of the following are true:

    • The DB connection is using UTF-8
    • The DB tables are using UTF-8
    • The individual columns in the DB tables are using UTF-8
    • The data is actually stored properly in the UTF-8 encoding inside the database (often not the case if you’ve imported from bad sources, or changed table or column collations)
    • The web page is requesting UTF-8
    • Apache is serving UTF-8

    Here’s a good tutorial on dealing with that list, from start to finish: https://web.archive.org/web/20110303024445/http://www.bluebox.net/news/2009/07/mysql_encoding/

    It sounds like your problem is specifically that you’ve got double-encoded (or triple-encoded) characters, probably from changing character sets or importing already-encoded data with the wrong charset. There’s a whole section on fixing that in the above tutorial.

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

Sidebar

Related Questions

Possible Duplicate: UTF-8 all the way through I'm trying to insert special characters (like
Possible Duplicate: UTF-8 all the way through I am scraping data with curl from
Possible Duplicate: .NET - What’s the best way to implement a catch all exceptions
Possible Duplicate: && operator in Javascript In the sample code of the ExtJS web
Possible Duplicate: Objective C for Windows iPhone development on Windows Is there any way
Possible Duplicate: PHP: Replace umlauts with closest 7-bit ASCII equivalent in an UTF-8 string
Possible Duplicate: Convert UTF-8 encoded NSData to NSString I need to to convert the
Possible Duplicate: How to get UTF-8 working in java webapps? I have a servlet
Possible Duplicate: Weighted random selection with and without replacement I tired to make all
Possible Duplicate: How to use UTF-8 in resource properties with ResourceBundle I want to

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.