Skip to content

Commit a73b3ff

Browse files
authored
Update misleading info about default charset in HTTP
Fixes #426. This text really needs a rewrite; it apparently hasn't been touch for nearly two decades. This PR applies a minimal fix WRT defaults that do not exist in HTTP anymore.
1 parent 1c5d4a9 commit a73b3ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/http-charset/index.en.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ <h1>Setting the HTTP charset parameter</h1>
6868

6969
<section id="charset">
7070
<h2>The charset parameter</h2>
71-
<p>Documents transmitted with HTTP that are of type text, such as text/html, text/plain, etc., can send a <a class="print" href="../Protocols/rfc2068/rfc2068.txt">charset parameter</a> in the HTTP header to specify the character encoding of the document. </p>
72-
<p>It is <strong>very important</strong> to always label Web documents explicitly. HTTP 1.1 says that the default charset is
73-
ISO-8859-1. But there are too many unlabeled documents in other encodings, so browsers use the reader's preferred encoding when there is no explicit
71+
<p>Documents transmitted with HTTP that are of type text, such as text/html, text/plain, etc., can send a <a class="print" href="https://www.rfc-editor.org/rfc/rfc9110#field.content-type">charset parameter</a> in the HTTP header to specify the character encoding of the document. </p>
72+
<p>It is <strong>very important</strong> to always label Web documents explicitly. Until 2014 (RFC 7231), HTTP/1.1 used to say that the default charset is
73+
ISO-8859-1. But there are too many unlabeled documents in other encodings, so browsers either detect the encoding based on the MIME type, or otherwise use the reader's preferred encoding when there is no explicit
7474
charset parameter.</p>
75-
<p>The line in the HTTP header typically looks like this:</p>
75+
<p>The line in the HTTP header field typically looks like this:</p>
7676
<blockquote><code translate="no">Content-Type: text/html; charset=utf-8</code></blockquote>
7777
<p>In theory, any character encoding that has been <a class="print" href="http://www.iana.org/assignments/character-sets">registered with IANA</a> can be
7878
used, but there is no browser that understands all of them. The more widely a character encoding is used, the better the chance that a browser will

0 commit comments

Comments
 (0)