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

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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T15:32:38+00:00 2026-05-16T15:32:38+00:00

Well, I got a MySQL db, encoded as utf8_unicode_ci, and it runs like a

  • 0

Well, I got a MySQL db, encoded as utf8_unicode_ci, and it runs like a charm with the current application (written in Code Igniter)

Now, I’m developing a new PHP app, and when I try to recover the data, several characters are unreadable – chars appears ok in the DB with phpMyAdmin, but when I try to put it up in a webpage, it became like “ROLA �60”.

These characters are spanish letters, such as ñ, á, Ó… or ascii codes like €, Ø…

Where’s the problem? I’ve set the page as meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8″, I’ve tried the mysql_set_charset() function, and still nothing.

Any experience with this kind of problems?

  • 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-16T15:32:38+00:00Added an answer on May 16, 2026 at 3:32 pm

    I have noticed this exact problem in my database driven applications, and it took me a long time to work it out!

    The problem occurs because there are at least three places in your application that need their character sets defining, and they must all be the same character set (and that character set must be able to handle the characters you are handling).

    The question mark symbol and it’s variations occurs when the browser doesn’t understand what character it is being passed.

    Make sure your character sets match in the following places:

    1. The HTML head section.
    2. The database collation itself – this can be set in phpMyAdmin when you create a new table, or alter the schema of an existing table.
    3. The most overlooked character set setting: The php.ini file’s “default_charset” value (can be set via PHP script or the httpd.conf file).

    Judging from your post, it looks like your PHP configuration might be set to be using a different default_charset. This means that your database will be storing the characters fine, and will be sendign the characters fine to your script, but the PHP script itself will not know what to do with the character, and thus outputs to the browser as the annoying question mark symbol.

    Try changing the php.ini value to the same charset, and you may be surprised to see the characters displaying fine! If you don’t have access to php.ini, you can change the value with the following function:

    ini_set("default_charset", "UTF-8");
    

    Hope this helps.

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

Sidebar

Related Questions

Well, i've got a nice WPF book its called Sams Windows Presentation Foundation Unleashed.
i've got regex which was alright, but as it camed out doesn't work well
So, I've got SQL (2005) Transactional Replication generally working well with a single publisher
I've got a lot of mysql data that I need to generate reports from.
Well I have a very rough version of gomoku working now. I'm using Jquery,
I've got a query like this: update table set status = 1 where status
I got Jquery UI Datepicker that work well, but one important issue make me
I've got a set of regex's within a function that are working rather well
I got the code from here the Code is not working, I have the
I got a pretty simple parent/child relationship here, which looks like this: Email servers

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.