Special Spanish Characters not displaying, Codeigniter MySQL [duplicate]
I'm not exactly sure why, but I had this on html views and it wasn't working.
header('Content-Type: text/html; charset=utf-8');
By reading this post, I found an alternative answer:
How to display special characters in PHP
So I had to change the header of html files. I put this line:
header('Content-Type: text/html; charset=ISO-8859-1');
and it works perfect now.