# PercentEncoding

object PercentEncoding

RFC 3986 percent-encoding for a single query-string value. Not `java.net.URLEncoder` (form encoding turns space into `+`), not `android.net.Uri.encode` (throws on the unit-test classpath). `public` only because `:frak-sdk-ui` needs it across the module boundary; see [InternalFrakApi](/developers/references/android/id-frak-sdk/internalfrakapi/).

## Functions

| Name | Summary |
|---|---|
| [encode](/developers/references/android/id-frak-sdk-net/percentencoding/encode/) | fun [encode](/developers/references/android/id-frak-sdk-net/percentencoding/encode/)(value: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)<br>Percent-encodes every byte outside RFC 3986's unreserved set. |