I am trying to transfer a website from A to B. Unfortunately, I am having some sort of character encoding issue. I will go through what I doing. I would greatly appreciate it if someone could point out where the encoding is missing.
1) Generate SQL from original database. [A php script loops through the tables in the database constructing the SQL + insert data.]
2) Save SQL to a file
3) Run SQL on new host. SQL queries start with “SET NAMES ‘utf8′”
4) Look at table in phpmyadmin : Currencies Display fine – table collation is utf8_general
5) Run CMS page – Currencies appear as � and ?.? [Page has the following encoding. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />]
6) Run original page which is identical and the currencies display fine.
This is where I am stuck really. As both the old and new site have identical files then surely this points to the database as being the sticking point… however phpMyAdmin is showing these characters just fine.. i’m confused. Any ideas?
The CMS should also use
SET NAMES 'utf8'when connecting to the database.Maybe the default encoding is another one on the new server.