[#boost-urls-static_url-set_encoded_zone_id-04]
= xref:boost.adoc[boost]::xref:boost/urls.adoc[urls]::xref:boost/urls/static_url.adoc[static&lowbar;url]::set&lowbar;encoded&lowbar;zone&lowbar;id
:relfileprefix: ../../../
:mrdocs:

Set the zone ID for an IPv6 address (percent&hyphen;encoded)&period;

== Synopses

Declared in `&lt;https://www.github.com/boostorg/url/blob/develop/include/boost/url/url_base.hpp#L1411[boost&sol;url&sol;url&lowbar;base&period;hpp]&gt;`

Set the zone ID for an IPv6 address (percent&hyphen;encoded)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/url_base.adoc[url&lowbar;base]&
xref:boost/urls/url_base/set_encoded_zone_id.adoc[set&lowbar;encoded&lowbar;zone&lowbar;id](xref:boost/urls/pct_string_view.adoc[pct&lowbar;string&lowbar;view] s);
----

[.small]#xref:boost/urls/url_base/set_encoded_zone_id.adoc[_» more&period;&period;&period;_]#

Set the zone ID for an IPv6 address (percent&hyphen;encoded)&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:boost/urls/static_url.adoc[static&lowbar;url]&
xref:boost/urls/static_url/set_encoded_zone_id-0b.adoc[set&lowbar;encoded&lowbar;zone&lowbar;id](xref:boost/urls/pct_string_view.adoc[pct&lowbar;string&lowbar;view] const& s);
----

[.small]#xref:boost/urls/static_url/set_encoded_zone_id-0b.adoc[_» more&period;&period;&period;_]#

== Exceptions

[cols="1,4"]
|===
| Name| Thrown on
| `system&lowbar;error`
| `s` contains an invalid percent&hyphen;encoding&period;
|===

== Return Value

`&ast;this`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *s*
| The zone ID to set&period;
|===


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