I have a column in a table where the value is only a letter. The column name is ‘place’. When selecting everything from the table grouped by ‘place’, the letter A and the Danish letter Å is placed together. Why is that?
The encoding for the table is utf8mb3_general_ci and header of the PHP script is set to utf8.
I have tried to change the header of the PHP to iso-8859-1 with no luck.
2
Answers
you must set rhe colation of the table. this set set sort order
result
sample https://dbfiddle.uk/JVaOtG3W
You may want switch to utf8mb4 charset and utf8mb4_bin collation for supporting international characters.