-1

Why won't the following query work on the accented characters in my column?

UPDATE people SET firstname = REPLACE(firstname,'à','a');

It works fine when I do:

UPDATE people SET firstname = REPLACE(firstname,'e','a');

The database character set is utf8mb4. I've tried changing the column's collation, but that didn't work.

Edit: I added this before my query and it worked:

mysqli_set_charset($conn,"utf8mb4");
user3080392
  • 1,194
  • 5
  • 18
  • 35
  • 1
    Possible duplicate of [Accented characters in mySQL table](http://stackoverflow.com/questions/14083847/accented-characters-in-mysql-table) – Quinton Apr 01 '17 at 22:30

1 Answers1

1

Follow this -> Accented characters in mySQL table

I think that's what you are needing to do for your DB to accept accented characters.

Community
  • 1
  • 1
Quinton
  • 38
  • 5