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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T16:41:15+00:00 2026-05-30T16:41:15+00:00

Our previous programmer set the wrong collation in a table (Mysql). He set it

  • 0

Our previous programmer set the wrong collation in a table (Mysql). He set it up with Latin collation, when it should be UTF8, and now I have issues. Every record with Chinese and Japan character turn to ??? character.

Is possible to change collation and get back the detail of character?

  • 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-30T16:41:17+00:00Added an answer on May 30, 2026 at 4:41 pm

    change database collation:

    ALTER DATABASE <database_name> CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
    

    change table collation:

    ALTER TABLE <table_name> CONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
    

    change column collation:

    ALTER TABLE <table_name> MODIFY <column_name> VARCHAR(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci;
    

    What do the parts of utf8mb4_0900_ai_ci mean?

    3 bytes -- utf8
    4 bytes -- utf8mb4 (new)
    
    v4.0 --   _unicode_
    v5.20 --  _unicode_520_
    v9.0 --   _0900_ (new)
    
    _bin      -- just compare the bits; don't consider case folding, accents, etc
    _ci       -- explicitly case insensitive (A=a) and implicitly accent insensitive (a=á)
    _ai_ci    -- explicitly case insensitive and accent insensitive
    _as (etc) -- accent-sensitive (etc)
    
    _bin         -- simple, fast
    _general_ci  -- fails to compare multiletters; eg ss=ß, somewhat fast
    ...          -- slower
    _0900_       -- (8.0) much faster because of a rewrite
    

    More info:

    • What are the differences between utf8_general_ci and utf8_unicode_ci?
    • What's the difference between utf8_general_ci and utf8_unicode_ci?
    • How to change collation of database, table, column?
    • What's the difference between utf8_general_ci and utf8_unicode_ci?
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

can anyone help. I have recently moved servers, its IIS7 rather that our previous
This is one of those 'oh my god' moments. The previous programmer in our
I have an ant script created by a previous employee of our company and
Previous investigation in Can I make a table of String + lambdas that have
I have some redirects in place from our previous site that used CakePHP. The
We have a custom attribute that our previous developer (recently disappeared) has created in
At my previous company, we created our RIAs using Flex with graphical assets created
In C# our maintainance project, we observered that the previous company has a root
As I've mentioned in a previous question , I'm looking into migrating our source
I am trying to delete an old user from our perforce installation. A previous

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.