PHP header() not working because of character encoding
Get the solution ↓↓↓Solution:
That's why you should never ask programming questions to the HSP support guys. It's out of their scope and in the best case they'll provide some bogus advice like this.
Whatever, it's possible that there's some truth in the reference to UTF-8. Check your editor settings and make sure your UTF-8 files do not contain BOM (Unicode Byte Order Marker). It isn't mandatory and most applications get confused with it, esp. PHP itself.
Answer
Solution:
In newer versions of notepad (windows) you can select the encoding when you 'Save as'.
Otherwise use notepad++ which has an encoding menu.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: php undefined array key
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.