New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mailto macro should encode spaces in the URI as %20 instead of + #4576
Comments
We have been using CGI.escape, which follows the CGI/HTML forms spec and gives you an application/x-www-form-urlencoded string. What we need to follow is RFC 3986, which requires spaces to be encoded as %20. |
"When producing 'mailto' URIs, all spaces SHOULD be encoded as %20, and '+' characters MAY be encoded as %2B." |
This is matter of using the new CGI.escapeURIComponent method in Ruby 3.1 and using CGI.escape with a gsub patch for |
…ordance with RFC 3986 instead of +
…cordance with RFC 3986, instead of using +
…cordance with RFC 3986, instead of using +
Thank you for resolving this issue! |
…dance with RFC 3986, instead of using +
According to https://www.rfc-editor.org/rfc/rfc6068#section-5, spaces in the mailto URL should be encoded as %20 instead of +. While some email clients can handle both, others only recognize %20.
The text was updated successfully, but these errors were encountered: