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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T22:25:12+00:00 2026-05-15T22:25:12+00:00

I have a users table in which there’s a column called ‘nickname’, utf-8 encoded,

  • 0

I have a users table in which there’s a column called ‘nickname’, utf-8 encoded, varchar(20), the table is in InnoDB. There’re 2 records one has a nickname = ‘gunni’ and the other nickname = ‘günni’. When I tried to apply a unique index onto this column, mysql gave me this error :

ERROR 1062 (23000) at line 263: Duplicate entry ‘gunni’ for key 2

I checked the data there’s only one record that has the name ‘gunni’, and if I change the ‘günni’ record to something else then apply the unique index again, everything works fine.

How come ‘günni’ & ‘gunni’ be duplicates? Here is the hex values for them, I get this with mysql’s hex() function :

gunni -> 67756E6E69

günni -> 67C3BC6E6E69

They’re obviously different. How come mysql treats these 2 as the same? Or is there something I don’t know about unique indexes? Or even, could this be a mysql bug?

  • 1 1 Answer
  • 1 View
  • 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-15T22:25:12+00:00Added an answer on May 15, 2026 at 10:25 pm

    It’s because of the collation you are using.

    Anything that ends with _ci is case-insensitive (and also accent/umlaut insensitive). So yes, MySQL will consider “günni” and “gunni” the same thing, unless you change your collation.

    Docs: http://dev.mysql.com/doc/refman/5.0/en/charset-table.html

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

Sidebar

Related Questions

I have a innoDB table which records online users. It gets updated on every
I have a table which records users's scores at a game (a user may
Suppose we have a table Users that has only one column UserId which is
I have a base table called users which holds all common information about a
I have a very typical situation. We have a table called Users which has
I have a table called profiles. There was a column in this table called
I have a database in which there is a user table & how many
So I have a mySQL database with a 'users' table which includes a username,
I have a table users which has a primary key userid and a datetime
I have a picture table which consists for users pictures Table Name:picture Columns: picture_id

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.