> For the complete documentation index, see [llms.txt](https://krjaeh0.gitbook.io/j-log/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://krjaeh0.gitbook.io/j-log/programming/cs_basics/web_technologies/http-and-urls/url_encoding.md).

# URL\_Encoding

웹에서 사용되는 URL은 특정한 형식의 문자열만 허용합니다. 알파벳 대소문자, 숫자, 그리고 일부 특수 문자만을 포함할 수 있습니다. 웹 브라우저로부터 받은 URL 문자열을 유효한 형식으로 변환하는 것을 URL 인코딩이라고 합니다.

URL 인코딩을 통해 문자열을 인터넷으로 전송 가능한 형식으로 변환합니다. 이를 통해 전송 중에 문자가 수정되거나 의도와 다르게 해석되는 것을 막을 수 있습니다. 허용되지 않는 문자, 즉 인코딩이 필요한 특수문자는 다음과 같습니다:

`:/?#[]@!$&'()*+,;=%공백`

URL 인코딩은 `%` 기호 뒤에 해당 문자의 아스키 코드 16진수 값을 붙여 나타냅니다. 공백 문자를 예로 들면, URL에 공백이 포함되는 경우 `+` 기호 혹은 `%20`으로 변환됩니다. 여기서 `%20`이 URL 인코딩 결과입니다.

{% hint style="info" %}
공백은 `+` 또는 `%20`로 인코딩될 수 있습니다. 구현(예: 폼 전송 방식 등)에 따라 사용하는 방식이 다를 수 있습니다.
{% endhint %}

예시:

원본 문자열:

```
Welcome, Dreamhack Beginners! :)
```

URL 인코딩 결과:

```
Welcome%2C%20Dreamhack%20Beginners%21%20%3A%29
```

더 보기: [URL 인코딩 도구](https://tools.dreamhack.games/cyberchef)


---

# 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://krjaeh0.gitbook.io/j-log/programming/cs_basics/web_technologies/http-and-urls/url_encoding.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.
