Character encoding has always been a problem for me. I really don't understand when is the right time to use it.
All the databases that I use now are configured with utf8_general_ci, as this seems like a good "general" start. Since then, I have learned in the last five minutes that it is case insensitive. So itβs useful.
But my question is when to use utf8_encode and utf8_decode ? As far as I can see now, if I have a $ _POST form from a table on my site, I need a utf8_encode() value before inserting it into the database.
Then, when I pull it out, I need utf8_decode. This is true? Or am I missing something?
source share