W3C home > Mailing lists > Public > whatwg@whatwg.org > January 2007

[whatwg] [WF2] action="mailto:" - encoding spaces

From: Shadow2531 <shadow2531@gmail.com>
Date: Tue, 30 Jan 2007 22:17:44 -0500
Message-ID: <6b9c91b20701301917m55912c6vf2627a8e332c814d@mail.gmail.com>
<http://www.whatwg.org/specs/web-forms/current-work/#x-www-form-urlencoded> (#4)

In mailto URIs, %20 represents a space.

<form action="mailto:">
    <input name="subject" value="1 2">
    <input type="submit">

If you submit that form, "mailto:?subject=1+2" will be passed to the
mail client instead of "mailto:?subject=1%202". This results in "1+2"
in the subject field instead of "1 2".

Are UAs allowed to use %20 instead so things come out right, or must
mail clients decode + to a space? Thunderbird, M2, and Outlook express
don't decode +s.

RFC2368 is referenced, but it and application/x-www-form-urlencoded
that the mailto: form methods are referenced under conflict with each
other on whether a space should be encoded to %20 or +.

Received on Tuesday, 30 January 2007 19:17:44 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:51 UTC