RFC 2368 and RFC 1738 are obsoleted by newer versions. I haven't read
through all of them in detail, but for what it's worth RFC 6068 (which
replaces RFC 2368) mentions in section 5:
Current implementations encode
a space as '+', but this creates problems because such a '+' standing
for a space cannot be distinguished from a real '+' in a 'mailto'
URI. When producing 'mailto' URIs, all spaces SHOULD be encoded as
%20, and '+' characters MAY be encoded as %2B.
So that at least acknowledges that expected handling of a '+' is
ambiguous, and that anyone producing mailto URIs should encode spaces as
%20. A quick search of the others didn't turn up any obvious mention of
encoding spaces as '+'. Were there specific sections where you saw this
mentioned?
"application/x-www-form-urlencoded" is a content type used in HTTP POST
requests, in which the content is in a similar format to URL query
strings. I'm not sure off the top of my head whether the query part of a
URI is defined to be exactly the same format as
"application/x-www-form-urlencoded" content, nor whether the current
version allows encoding spaces as '+'.
All in all, if you want consistent behaviour, it's probably best to use
%20 to represent a space even if some applications also accept '+'.
Mark.
Andrey ``Bass'' Shcheglov wrote:
Hello Jonathan,
Thank you for your response.
mailto: links are indeed standard, with Mozilla products (since
Netscape 4.x) supporting only part of the standard.
Since the format of the URL is "application/x-www-form-urlencoded",
both + and %20 should be supported -- see RFC 2368
<https://tools.ietf.org/html/rfc2368>, RFC 1738
<https://tools.ietf.org/html/rfc1738> and RFC 3986
<https://tools.ietf.org/html/rfc3986>.
Regards, Andrey.
On 04.07.2017 16:52, Jonathan N. Little wrote:
Andrey ``Bass'' Shcheglov wrote:
Hello,
Whenever I click a mailto: link with a subject, e. g.:
<mailto:[email protected]?subject=Lorem+ipsum+dolor+sit+amet>
the new message window opens with a non-empty subject, but the
plus signs are not replaced with spaces, i. e. I get
"Lorem+ipsum+dolor+sit+amet", not "Lorem ipsum dolor sit amet".
This is reproducible using
Mozilla/5.0 (X11; Linux i686; rv:49.0) Gecko/20100101
Firefox/49.0 SeaMonkey/2.46
and
Mozilla/5.0 (Windows NT 6.3; WOW64; rv:52.0) Gecko/20100101
Firefox/52.0 SeaMonkey/2.49
Is this a known issue?
I don't know, isn't mailto links not really a standard? Anyway,
should you not format it URL escaping to get what you want?
<mailto:[email protected]?subject=Lorem%20ipsum%20dolor%20sit%20amet>
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey