At first I thought it was a database problem related, but after some debug I found out that, for example, when updating a product if I output the $_POST
results BEFORE saving in the database, this is what I get:
Array
(
[product_description] => Array
(
[2] => Array
(
[name] => Ergonómica
[description] =>
[meta_title] => Ergonómica
[meta_description] =>
[meta_keyword] =>
[tag] =>
)
)
...
)
So, whats being saved is Ergonómica
and should be Ergonómica
. Doing phpinfo()
returns:
default_charset=UTF-8
mbstring.http_output=UTF-8
mbstring.internal_encoding=UTF-8
This is definitely a server/hosting problem as the same project in another server works without any encoding issue, however I have not yet figure it out what seems to be the cause of the bad encoding.
Anyone has any guess? The project was just duplicated from one server to another.