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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T20:40:21+00:00 2026-05-20T20:40:21+00:00

I have names in the database like tést The Autocomplete works fine and all

  • 0

I have names in the database like

tést

The Autocomplete works fine and all and if I seach for it like this:

WHERE title LIKE '%tèst%'

It works fine. But now i also want to find this entry if the user enters

test

(without the accent). In most cases its fine as autocomplete fixes the user up, but of course not always. How can I change the query so that the needle “test” also finds “tést” (other way round does not matter)?

  • 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-20T20:40:22+00:00Added an answer on May 20, 2026 at 8:40 pm

    This works for me.

    I tested this on MySQL 5.5.8 using utf8 charset and utf8_general_ci collation.

    I tried searching for where title like '%tèst%' and where title like '%test%', and both queries returned both “tèst” and “test”, which seems like what you want.

    Does it not work like this for you?

    mysql> create table french (
        -> title text
        -> ) default charset = utf8, default collate = utf8_general_ci;
    Query OK, 0 rows affected (0.13 sec)
    
    mysql> 
    mysql> insert into french values ('tèst');
    Query OK, 1 row affected (0.00 sec)
    
    mysql> insert into french values ('test');
    Query OK, 1 row affected (0.00 sec)
    
    mysql> insert into french values ('toast');
    Query OK, 1 row affected (0.00 sec)
    
    mysql> 
    mysql> select * from french where title like '%tèst%';
    +-------+
    | title |
    +-------+
    | tèst  |
    | test  |
    +-------+
    2 rows in set (0.00 sec)
    
    mysql> select * from french where title like '%test%';
    +-------+
    | title |
    +-------+
    | tèst  |
    | test  |
    +-------+
    2 rows in set (0.00 sec)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database with names like this: Maria Garcia Garralon Jose Maria Perez
I have this remote database of artists. About 6,000 entries for now. I want
I have data in my database like this: Alice anderson Beatrice benny Carmen calzone
I have a column of database names like so: testdb_20091118_124925 testdb_20091119_144925 testdb_20091119_145925 ect... Is
I have a database table like this Port Code | Country |Port_Name -------------------------------------- 1234
I have a mysql database like this: id - join_id - bool 1 -
I have a database table, let's call it Countries. Countries all have names, short
I have a large database and would like to select table names that have
Hi all I have seen all question related to this problem but couldn't find
I have a working branch in my Mac names database and I would like

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.