X
X
Xrist1An2015-06-25 01:41:29
PHP
Xrist1An, 2015-06-25 01:41:29

What are the artifacts on the page when returning HTTP/1.1 404 Not Found?

When the title is rendered with the following construction:
header('HTTP/1.1 404 Not Found');
on the page, in different places of the layout, some numbers with letters appear. Usually 3-4 digits followed by a small letter.
All this was cured by changing the version from HTTP / 1.1 to HTTP / 1.0
Does anyone know what it is?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Andrew, 2015-06-25
@Xrist1An

m.geektimes.ru/post/72143
See comments.

P
Pavel Radkov, 2015-06-25
@paulradzkov

It is possible that your response comes in UTF-8 with BOM (Byte Order Mark) encoding, and the browser expects another one, for example, Latin 1 (ISO 8859-1). In this case, characters appear on the page that were not in the source code. Check the source of the problematic page: at the very beginning there may be such a 
In UTF-8 without BOM, there will be no such problems.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question