0

Possible Duplicate:
Why my page cannot display é, instead, showing � ?

I have following in my html head:

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

but nevertheless my live web page shows the international characters as little squares or question marks ?.

Community
  • 1
  • 1
Timothée HENRY
  • 14,294
  • 21
  • 96
  • 136
  • Are you sure that the text file really is saved using UTF-8 encoding? If so, make sure that you upload the file in 'binary mode' if you use FTP. – Andreas Rejbrand Jun 25 '11 at 13:47
  • @Pekka, thanks. It was indeed a duplicate question and I found the problem. After saving the file again in Notepad+ and uploading it to the live site, it worked. – Timothée HENRY Jun 25 '11 at 13:53

1 Answers1

0

copying my answer to the question Why my page cannot display é, instead, showing �

make sure your file does not have a BOM (byte order mark) at its beginning. i had this problem recently, and even though the file was saved as utf8 (checked several times), the BOM confused firefox and it wrongly displayed umlauts (i had html tags set to the correct encoding and http headers)

my website worked fine on localhost too, but broke on my webhost

Community
  • 1
  • 1
knittl
  • 246,190
  • 53
  • 318
  • 364