note 81971 deleted from function.header by tularis
| From: | tularis@php.net | Date: | Fri, 04 Apr 2014 11:28:19 +0000 |
| Subject: | note 81971 deleted from function.header by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199160@lists.php.net to get a copy of this message | ||
Note Submitter: gilthans at nospam dot gmail dot com
----
I've been having trouble with a simple page that simply redirects the page elsewhere. Even the
simple:
<?php
Header("Location: http://www.google.com/");
?>
Wouldn't work ("Warning: Headers already sent!").
After double checking for extra spaces, I found out that because I saved the file as a UTF-8 file,
and the page wasn't loaded as a UTF-8 page, so some weird character was prepended to the page.
After saving the file as a windows-1252 file it worked ok. Hope this someone some headaches.