1

Why do I get different values when importing data from server computer to my computer

source value = Kirstinehøj 17
became this Kirstinehøj 17

thanks

Firman Hidayat
  • 415
  • 4
  • 13
  • possible duplicate of [UTF-8 all the way through my web application (Apache, MySQL, PHP, ...)](http://stackoverflow.com/questions/279170/utf-8-all-the-way-through-my-web-application-apache-mysql-php) – fancyPants Sep 26 '13 at 10:45
  • encoding. that's the simplest thing i can say. – Chris Sep 26 '13 at 10:46
  • oh... sorry for being so stupid... i have no idea that's because encoding... thank you very much – Firman Hidayat Sep 26 '13 at 10:48
  • Are you importing and/or exporting with phpMyAdmin? You tagged phpmyadmin but didn't specify whether you're using it for both ends of the transfer. You may also wish to look at http://wiki.phpmyadmin.net/pma/Garbled_data – Isaac Bennetch Sep 26 '13 at 23:33
  • yes i'm importing/exporting with phpmyadmin... thanks for your link – Firman Hidayat Sep 27 '13 at 01:56

1 Answers1

0

Set your default_charset in php.ini, then using header() from within your code, before any output:

header('Content-Type: text/html; charset=utf-8');
Nadeem_MK
  • 7,533
  • 7
  • 50
  • 61