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 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

I've got some problems with the following code in my PHP/MySQL application. It works
Well ive got this code that creates a table from JSON data. If a
I got this code from someone and it works very well, I just want
Well, Here is the C++ code I've got here and cant compile #include <iostream>
Well, now that I've finally got my stupid ODBC stuff configured, I took a
My PHP code works well in connecting remote windows system mysql database and returns
I have got a comment script written in PHP working pretty well. It saves
Well i got alot of posts in my stream but when i do: SELECT
Well i've got a simple doubt regarding the behaviour of instance of a java.swing.ImageIcon
Tomcat has got that well-known memory leak problem that causes PermGen space errors after

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.