8000 The concept of "output encoding" is not described anywhere · Issue #291 · whatwg/encoding · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
The concept of "output encoding" is not described anywhere #291
Open
@Mingun

Description

@Mingun

Currently a paragraph about it gives no idea what is "output encoding" and why it is needed:

encoding/encoding.bs

Lines 733 to 746 in 4f549cd

<h3 id=output-encodings>Output encodings</h3>
<p>To <dfn export>get an output encoding</dfn> from an <a for=/>encoding</a>
<var>encoding</var>, run these steps:
<ol>
<li><p>If <var>encoding</var> is <a>replacement</a> or <a>UTF-16BE/LE</a>, then return
<a>UTF-8</a>.
<li><p>Return <var>encoding</var>.
</ol>
<p class=note>The <a>get an output encoding</a> algorithm is useful for URL parsing and HTML
form submission, which both need exactly this.

It would be good to describe what it is, what problems it solves and where you should use it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0