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

  • Home
  • SEARCH
  • 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 8711189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T04:48:45+00:00 2026-06-13T04:48:45+00:00

Possible Duplicate: Looking for case insensitive MySQL collation where a != ä I’m struggling

  • 0

Possible Duplicate:
Looking for case insensitive MySQL collation where “a” != “ä”

I’m struggling with this utf8 nonsense, I create a test table:

CREATE TABLE `test` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `name` varchar(20) CHARACTER SET utf8 NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `name` (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_general_ci;

I insert a single row:

INSERT INTO `test`(`name`) VALUES ('Cryptïc');

I query against the table:

SELECT `name` FROM `test` WHERE `name` LIKE 'Cryptic';

I get result set:

+---------+
| name    |
+---------+
| Cryptïc |
+---------+

i should not equal ï, a little help?

  • 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-06-13T04:48:47+00:00Added an answer on June 13, 2026 at 4:48 am

    Use utf8_bin instead of utf8_general_ci.

    With utf8_general_ci, similar characters (like i and ï) are treated as the same character in comparisons and sorting. The comparison is also case insensitive (hence the _ci), which means that i and I are also treated the same.

    Other collations, like utf8_unicode_ci do better sorting, but still ‘fail’ on comparisons.

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

Sidebar

Related Questions

Possible Duplicate: Is there an alternative to string.Replace that is case-insensitive? I'm looking for
Possible Duplicate: Case Order by using Null I'm looking to get a list of
Possible Duplicate: Concatenating two QStrings with an integer i'm looking forward to create a
Possible Duplicate: mysql case sensitive query 'm working on an PHP script that checks
Possible Duplicate: CSS selector case insensitive for attributes The here below code checks if
Possible Duplicate: HTML table with fixed headers? Looking for a solution to create a
Possible Duplicate: How do I create a nice-looking DMG for Mac OS X using
Possible Duplicate: Create a CSV File for a user in PHP I am looking
Possible Duplicate: What features are people looking forward to in .Net 4.0 - 4.1
Possible Duplicate: Array slicing in Ruby: looking for explanation for illogical behaviour (taken from

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.