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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T10:54:11+00:00 2026-05-24T10:54:11+00:00

In my database on localhost, the data is saved in utf8-general-ci . This is

  • 0

In my database on localhost, the data is saved in utf8-general-ci . This is an exmple of my data record in utf8 which I see in phpmyadmin: “M�y t�nh b?ng Superpad 10.2 inch” . However, after I export it to sql file, all the unicode character become the question mark as follow: “Máy tính b?ng Superpad 10.2 inch”. How could I solve this problem? One more problem is that if I import it back to another database with the same mysql version on localhost, I saw that the data is saved in the new database the same as “M�y t�nh b?ng Superpad 10.2 inch”, but when I used the new database on the web application, the data is displayed as follow: “Máy tính b?ng Superpad 10.2 inch” . I don’t know what happen and could you please give me some fundamental article about export/import data in mysql with utf charset?

Thanks and best regards.

  • 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-24T10:54:14+00:00Added an answer on May 24, 2026 at 10:54 am

    You can use mysqldump to dump the data with utf8 characters. If you are using mysql<5x then run:

    mysqldump –default-character-set=utf8 db_name > dump.sql

    Because newer release of mysqldump uses UTF8 as its default charset if nothing is specified, while older versions (older than 4.1 typically) use Latin1 as default characterset.

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

Sidebar

Related Questions

Consider the following code: <?php $conn = mysql_connect('localhost', 'username', 'password'); mysql_select_db('database', $conn); ?> This
So I have this function that gets data from database and echoes it. The
Im getting this error when Im trying to update data in the database. this
I have following piece of code which posts some data into database: $post =
Can anyone help me, I'm trying to backup a database located on localhost\SQLEXPRESS but
when I am using 'localhost' as the host for MySQL database, sequel pro alert
I have created login account on my localhost\sql2008 Server (Eg. User123) Mapped to Database
A while ago, I wrote a program that outputs any localhost or network database
Database is OracleXE and here is the problem: data gets entered in tables UPS
I have a CSV export script (enrdata_arch.php) which calls information from an existing database

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.