Spanish special characters are not displaying correctly, a word like: 'Árbol' is displayed like '�bol'.
1) Text in database is saved correctly. 'Árbol' looks perfect on database.
2) If I insert a new word, eg. 'Tétrico', it is saved correctly on database.
I've been experiencing this problem since I moved the project to another server, on localhost (Ubuntu server) works perfect.
I've tried everything reading similar questions:
- View files are encoded in UTF-8 without BOM.
- header('Content-type: text/html; charset=utf-8');
In my.cnf, I've added the lines:
init_connect='SET NAMES utf8'
character_set_server=utf8
It just doesn't work.
What else can I do?
I've replicated changes that I did on localhost (because project works perfect here, everything's displaying correctly) to new server, but nothing's changed.