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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:11:05+00:00 2026-05-27T08:11:05+00:00

My mySQL database create shows CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE

  • 0

My mySQL database create shows

CREATE DATABASE `foo` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */ 

The mySQL field collation shows utf8_unicode_ci.

The Access export specifies a Code Page of Unicode (UTF-8).

The importing query is

LOAD DATA LOCAL INFILE '/home/foo/Snapshot/tblImages.txt' INTO TABLE `tblImages` CHARACTER SET utf8 FIELDS OPTIONALLY ENCLOSED BY '|' TERMINATED BY ';' LINES TERMINATED BY '\n';

Before drawing the page PHP issues

header('Content-Type: text/html; charset=utf-8');

In the <head> I have

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

If I open the Access exported txt file in UltraEdit under Windows 7 I see correct accents:

Plan d’une propriété située dans la première Municipalité (1000 Dauphine corner St. Philip)

If I query the data in mySQL monitor under Linux I see:

Plan dâune propriété située dans la première Municipalité (1000 Dauphine corner St. Philip)

And when I echo the query output to a browser I see:

Plan d?une propri?t? situ?e dans la premi?re Municipalit? (1000 Dauphine corner St. Philip)

If I preface the other queries with:

SET NAMES utf8;

Then in Webkit browsers I see:

utf-8 issue

What am I missing here?

  • 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-27T08:11:06+00:00Added an answer on May 27, 2026 at 8:11 am

    The issue was resolved by adding these queries to the connection:

    mysql_query("SET collation_connection = utf8_unicode_ci");
    mysql_query("SET NAMES utf8;");
    

    And THEN a call to utf8_encode() wrapping the output.

    The function call ought not be needed given all of the headers and Content-Type settings…?

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

Sidebar

Related Questions

Is it possible to extract a script from an MySQL database to create a
Can we create a new MySQL database( not a table, I want a new
I have mysql database structure like below: CREATE TABLE test ( id int(11) NOT
I inherited MYSQL database that has lots of tables with data like CREATE TABLE
i want to create tabs according to data from MySQL database using php for
following is the that I create dump from mysql database. mysqldump -u root tempbkk
Problem: To read MySQL's manual effectively Error: mysql> create database plastronics -> ; ERROR
I'm trying to create a simple database table using the PHP MySQL query Create
When upgrading MySQL, I first create a backup of the database. Then I will
I have a front-end Access 2007 database connecting to MySql tables using MySQL ODBC

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.