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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:55:31+00:00 2026-06-08T17:55:31+00:00

I have some text in French in a MySQL field, which appears correctly under

  • 0

I have some text in French in a MySQL field, which appears correctly under PHPMyAdmin:

mentionné

The field is encoded as utf32_unicode_ci. (It is a varchar(500), utf32_unicode_ci).

but a call to a PHP script calling this parameter and outputing in html encoded in utf-8 returns:

mentionn�

Here is an extract of my php html header:

<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="fr-FR">
<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

How can I fix this?

  • 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-08T17:55:32+00:00Added an answer on June 8, 2026 at 5:55 pm

    Please, besides the database encoding, be sure you check the following:

    • utf8 encoding of the FILES (js/php) (under ultra-edit, F12: save as UTF8-NOBOM)
    • utf8 html content: <meta HTTP-EQUIV="content-type" CONTENT="text/html; charset=utf-8">
    • utf8 of your db connection: SET character_set_connection = 'utf8'
    • utf8 of your query results: SET character_set_results = 'utf8'
    • utf8 of your db client: SET character_set_client = 'utf8'
    • utf8 of your mysql tables: ALTER TABLE table CONVERT TO CHARACTER SET utf8;
    • utf8 of your db server: SET character_set_database = 'utf8' and SET character_set_server = 'utf8'
    • in some cases, forcing utf8 in file is necessary when hardcoded values need encoding. You would need to add a comment on top of your file for instance, with charset=utf-8, so ultra edit or your favorite editor can detect it.

    rgds.

    ps: I don’t know utf32 but somehow the logic should be the same

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

Sidebar

Related Questions

I have some text stored in the body field of a custom content type
I have some text which I want to have on separate lines. I try
I have some text stored in a variable which contains some HTML. For example,
I have some text. Is there is any api which can tell me the
I have some text from a breadcrumb which I am using to open menu
I have some text which I need to translate into Japanese. Translate text, webpage,
I have some text fields in the oracle table, which have double quotes. How
I have some text stored in MySQL database like this Tom gave Sarah £5
I have some text in a field that I need to replace, but the
I have some text in French that I need to process in some ways.

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.