1
votes

I'm moving my website to another hosting, because it lacks of support and has been inoperative since saturday.

On the new hosting, my website is displaying some characters as black diamonds with a question mark (�) instead of the correct symbol (á, ç, è, etc)

HEADER CHARSET

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 

DATABASE IMPORT

It was imported using phpadmin and map charset was setted to UTF-8

PHP INFO

There is no value setted to 'default_charset' on php.ini.

FIREFOX PAGE DETAILS

On my old hosting, Firefox Page details was reporting this encoding: windows-1252

On my current hosting it is: UTF-8

PHP Info: PHP Server Info

Firefox reports the following details of page:

Firfox Page Details

What I have tried so far

  • Re-importing database using map charset ISO-8859-1
  • Adding several .htaccess directives to override current charset, but none seemed to work (atleast Firefox Page Details never changed from UTF-8 to anything else)
  • Changing meta charset to windows-1252 and ISO-8859-1

I'm quite stuck.

Thanks

1

1 Answers

2
votes

try using utf-8 charset, at the top of your file:

header('Content-Type: text/html; charset=utf-8');