My database uses utf8_czech_ci collation and I want to set it to my database connection too. Mysqli_set_charset won’t let me set collation, if I don’t happen to want the default one, utf8_general_ci. Here was suggested first to set the charset through mysqli_set_charset and then to set collation by SET NAMES. So I did it and connection collation is still utf8_general_ci.
Tag: collation
PHP | alphabetical sort of UTF-8 tags ( Class ‘Collator’ not found )
Edited question. Validated after 18.Dec.2013. after more search on SO and google, I decided that probably I need to utilize collator_create and collator_sort functions since my site’s language is Turkish and I use UTF-8 encoding. new position where I am is: Now, I have no html output and in my error.log file I got this warning “… PHP Warning: sort()