1

I built a website locally using xampp. Now I want to put it on my server. I uploaded the code and now its time to import the database. So I exported it locally on the command line using:

mysqldump -hlocalhost -udb123456  -p123456 db123456 -e --default-character-set=utf8 > backup.sql

Now I created a new database on the server and imported this file using phpmyadmin on the server. The char set was set to utf-8 in phpmyadmin. When I open my site now, special chars like ü or are shown as ü for example.

I can not import the dump using a console on the server, I may only use phpmyadmin.

What did I do wrong?

Thanks!

Arnie
  • 661
  • 9
  • 20

1 Answers1

0

I had a similar problem. I solved it in the PHP code, as described here

PHP PDO: charset, set names?

(assuming you use PDO)

Valter Ekholm
  • 173
  • 2
  • 17