Strange character at the beginning of the site pages

Asked

Viewed 95 times

1

I am developing a site in PHP and MYSQL and all pages are displaying the following characters at the beginning of the page: 

Each page (index, about, contact...) when opened has in the upper left corner, right at the top, this dirt. I’ve tried coding pages, database, nothing solved.

Someone can help me?

  • Enter the code of at least one page

  • 1

    from what you describe, the closest I can deduce is "good utf8". Remove utf8-good: http://answall.com/questions/31971/php-file-retorna-unknown-char-entrecada-letra/31976#31976

1 answer

6

I had this problem and solved opening the PHP file in Notepad++ and went to the Encoding tab (Encoding) and saved the file in UTF8 without good.

  • If you are using Dreamweaver open the "Preferences" (Ctrl+u) window in the new document item and take the 'Include Unicode Signature' selection (GOOD)'.

  • Thank you. I decided to set the codification of each file as UTF-8. With this I started having errors when displaying on the screen information coming from the database. Even the database is encoded in utf-8. I put a "utf8_encode($variable)" before 'printar' any content and solved.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.