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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T16:03:12+00:00 2026-05-19T16:03:12+00:00

I know that MySQL has default of latin1 encoding and apparently it takes 1

  • 0

I know that MySQL has default of latin1 encoding and apparently it takes 1 byte to store a character in latin1 and 3 bytes to store a character in utf-8 – is that correct?

I am working on a site that I hope will be used globally. Do I absolutely need to have utf-8? Or will I be able to get away with using latin1?

Also, I tried to change some tables from latin1 to utf8 but I got this error:
Speficief key was too long; max key length is 1000 bytes
Does anyone know the solution to this? And should I really solve that or may latin1 be enough?

Thanks,
Alex

  • 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-19T16:03:13+00:00Added an answer on May 19, 2026 at 4:03 pm

    it takes 1 byte to store a character in latin1 and 3 bytes to store a character in utf-8 – is that correct?

    It takes 1 bytes to store a latin1 character and 1 to 3 bytes to store a UTF8 character.

    If you only use basic latin characters and punctuation in your strings (0 to 128 in Unicode), both charsets will occupy the same length.

    Also, I tried to change some tables from latin1 to utf8 but I got this error: “Speficief key was too long; max key length is 1000 bytes” Does anyone know the solution to this? And should I really solve that or may latin1 be enough?

    If you have a column of VARCHAR(334) or longer, MyISAM wont’t let you create an index on it since there is remote possibility of the column to occupy more that 1000 bytes.

    Note that keys of such length are rarely useful. You can create a prefixed index which will be almost as selective for any real-world data.

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

Sidebar

Related Questions

I would like to make sure that everything I know about UTF-8 is correct.
I know that mySQL 5.x does not support INTERSECT, but that seems to be
When i set lower_case_table_names = 1 in mysql i know that it converts every
I know that Phonegap has an event for back button, but it's only available
I know that this sort of question has been asked here before, but still
We know that Android uses SQLite as its default database. My question is: Is
A simple question for MySQL-pro. I've got a table that has a field with
I'm looking for a very, very simple php framework that has a simple mysql
I know that MySQL does not have a regular expression replace function but I
The MySQL manual (http://dev.mysql.com/doc/refman/5.1/en/charset-syntax.html) says: There are default settings for character sets and collations

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.