:relfileprefix: ../../../
[#boost-urls-encoding_opts-space_as_plus]

== xref:boost.adoc[pass:[boost]]::xref:boost/urls.adoc[pass:[urls]]::xref:boost/urls/encoding_opts.adoc[pass:[encoding_opts]]::space_as_plus


True if spaces encode to and from plus signs


=== Synopsis

Declared in header `<https://www.github.com/boostorg/url/blob/develop/include/boost/url/encoding_opts.hpp#L48[boost/url/encoding_opts.hpp,window=blank_]>`

[source,cpp,subs="verbatim,macros,-callouts"]
----
bool space_as_plus = false;
----

=== Description


This option controls whether or not
the PLUS character ("+") is used to
represent the SP character (" ") when
encoding or decoding.
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.

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



