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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T11:32:14+00:00 2026-06-03T11:32:14+00:00

I have a problem with special characters in my database. They now display correct,

  • 0

I have a problem with special characters in my database. They now display correct, but sql seems to ignore them in queries. For example, unfortunately I have these entries:

Morgait
Morgaít
Mórgait

Now these names had a UNIQUE key, and while trying to add the second and third after the first one, it would already break saying that the last 2 couldn’t be added since the name would no longer be unique. In short, í gets treated as a normal i, and ó as a normal o.

When I query:
SELECT * FROM member WHERE charname = 'Morgait'
I get all 3 as result. Same for when I change the i to í, o to ó or even both at the same time.

How can I make the database see these differences? I have the collation of the table set to ascii_general_ci (also tried UTF 8 unicode ci).

  • 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-03T11:32:15+00:00Added an answer on June 3, 2026 at 11:32 am

    All of those collations are accent insensitive. You can try utf8_bin which is accent sensitive, however it’s also case sensitive.
    With accent insensitive collations, for example é equals e or ë and so on.

    SELECT * FROM member WHERE charname = 'Morgait' COLLATE utf8_bin 
    

    should do the trick. If you need case insensitivity, you can try

    SELECT * FROM member WHERE LOWER(charname) = LOWER('Morgait') COLLATE utf8_bin
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a problem with turkish special characters on different machines. The following code:
I have a problem concerning the input of special characters. Firstly, + is considered
I have a problem with Zends headTitle command and special characters, mainly Swedish characters
I got problem with some special characters. I have defined the meta tag as
problem: I have a string containing special characters which i convert to bytes and
Possible Duplicate: Special characters in PHP / MySQL I have a problem. I have
I'm having some problem getting text with special characters (Swedish: åäö) from the database.
It seems I have another problem with special character and double quotes and so
I have problem with Oracle 9.2 and JMS. I created PL/SQL routine to send
I have problem with HTTP headers, they're encoded in ASCII and I want to

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.