> For the complete documentation index, see [llms.txt](https://docs.vrsoft.com.br/vrmaster/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vrsoft.com.br/vrmaster/gestao-do-conhecimento/urlencode-aps.md).

# Urlencode Aps

O URL Encoding é o processo de conversão de caracteres especiais de uma URL em uma representação que possa ser transmitida de maneira segura na internet. Isso é necessário porque alguns caracteres têm significados específicos em URLs e, se usados diretamente, podem causar erros de interpretação.

Por exemplo:

O caractere # é usado para indicar um fragmento na página. O caractere ? separa a URL principal dos parâmetros de consulta. O caractere & separa diferentes parâmetros.

Quando esses caracteres são usados em valores de parâmetros ou caminhos, eles precisam ser codificados. Caso não realize esse processo você receberá um erro similar com documentado abaixo tentar iniciar a aplicação.

```

  2024/12/10 08:29:08 Stream Try Connect 1-101
  2024/12/10 08:29:08 Server Start Awaiting Signal
  2024/12/10 08:29:08 parse "rtsp://admin:senha-*/@192.168.0.52:554/cam/realmonitor?channel=1&subtype=0": invalid port ":senha-*" after host
  2024/12/10 08:29:09 Stream Try Connect 1-101

```

Note na mensagem do erro que a URL RTSP contem uma senha com carácteres especiais que precisam ser tratado, abaixo seque tabela com a representação ASC para troca dos caracteres mais comuns>

| Caractere | Codificado |
| --------- | ---------- |
| #         | %23        |
| &         | %26        |
| /         | %2F        |
| ?         | %3F        |
| =         | %3D        |
| @         | %40        |
| +         | %2B        |
| :         | %3A        |

Caso tenha outro caractere não listado pode consultar a documentação da [W3N](https://www.w3schools.com/tags/ref_urlencode.ASP|)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.vrsoft.com.br/vrmaster/gestao-do-conhecimento/urlencode-aps.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
