i’m using utf8_general_ci, how should data be stored?
i mean like if i have a varchar/text that contains special chars like áéíóúàèìòùçÇÀÉÌÒ, they are stored like that or they are converted in some way? im making a CASE/ACCENT INSENSITIVE search, but people told me i wasnt properply storing data, so i need a reference
so confused about this, even my ORDER BY is not working because the data is broken (after i know how data should be store im going to convert my database, the tables/setnames are already utf8_general_ci / utf8)
Just store it properly. 🙂
Seriously: You should store it so that, when you view the UTF-8 encoded database through an UTF-8 encoded connection in a program like phpMyAdmin or HeidiSQL, you see the actual characters
áéíóúàèìòùçÇÀÉÌÒ. Nothing more to it.utf8_general_ciis already accent insensitive in thatif you use a LIKE clause
columnname LIKE "searchterm"instead ofcolumnname = "searchterm", it will also be case insensitive.