[#boost-urls-encoding_opts-space_as_plus]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/encoding_opts.adoc[encoding&lowbar;opts]::space&lowbar;as&lowbar;plus
:relfileprefix: ../../../
:mrdocs:


True if spaces encode to and from plus signs

== Synopsis


Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/encoding_opts.hpp#L48[boost&sol;url&sol;encoding&lowbar;opts&period;hpp]&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool space&lowbar;as&lowbar;plus = false;
----

== Description


This option controls whether or not        the PLUS character (&quot;&plus;&quot;) is used to        represent the SP character (&quot; &quot;) when        encoding or decoding&period;        Although not prescribed by the RFC, plus        signs are commonly treated as spaces upon        decoding when used in the query of URLs        using well known schemes such as HTTP&period;


=== Specification

* link:https://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.1[            application&sol;x&hyphen;www&hyphen;form&hyphen;urlencoded (w3&period;org)]





[.small]#Created with https://www.mrdocs.com[MrDocs]#
