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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T23:01:03+00:00 2026-05-20T23:01:03+00:00

I’m looking for a best-practices approach to adding support for Asian character sets to

  • 0

I’m looking for a best-practices approach to adding support for Asian character sets to an existing database. We have existing tables that are in the latin1 charset:

show create table books
CREATE TABLE `books` (
  `id` varchar(255) NOT NULL,
  `category` varchar(255) default NULL,
  `contactEmail` varchar(255) default NULL,
  `description` text,
  `price` varchar(255) default NULL,
  PRIMARY KEY  (`id`),
) ENGINE=MyISAM DEFAULT CHARSET=latin1

Currently when we enter UTF8 chars for the description field, we get back ‘?’ chars for Asian chars on the round-trip. Latin1 chars work just fine.

Can I simply convert this table with something like this?

ALTER TABLE books CONVERT TO CHARACTER SET utf8

I understand that this won’t magically fix data already present in the table. I just want it to work properly for new data going forward.

Do I need to worry about collation? I have no idea how that would work for non-latin characters.

Would it make sense to make utf8 the default for the database? Are there any caveats to that?

Thanks

  • 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-20T23:01:03+00:00Added an answer on May 20, 2026 at 11:01 pm

    I don’t have much experience with how MySQL handles character sets, but I have experience with character sets in general.

    Currently when we enter UTF8 chars for the description field, we get back ‘?’ chars for Asian chars on the round-trip. Latin1 chars work just fine.

    Because your table is using latin1 for encoding, it can only store characters that are present in the latin1 character set. Latin1 is a shorthand for ISO-8859-1, you can see what characters it has — no Asian characters, which is why they won’t store. I’m a little surprised MySQL doesn’t error on such input.

    Would it make sense to make utf8 the default for the database? Are there any caveats to that?

    UTF-8 would be a good choice if you need to store characters from multiple languages. UTF-8, as a Unicode encoding, will let you store any Unicode character (there are literally thousands of them), from many languages. You could store the string “Dog café θλφ 你好” using UTF-8. UTF-8 is widely used, and is able to encode just about anything — I highly recommend it.

    I would peruse the Internet to find literature on converting MySQL tables, to make sure there aren’t any gotchas. If this is production data, test on an offline dataset — a development table or a QA table.

    Last, you seem to indicate that there are half-stored Asian characters somehow in your DB. I’d figure out what extactly is stored: if it’s the UTF-8 sequence for the Asian character, but the database thinks it’s latin1 (a classic case of mojibake), some recovery may be possible. I would worry that the conversion may attempt to transform the UTF-8 code units as if they were latin1, resulting in very interesting output. Test test test.

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

Sidebar

Related Questions

No related questions found

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.