---
title: Encode Special Characters in URLs
description: When true, encode the URL a URL with special characters before doing policy evaluation.
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:com.sun.identity.agents.config.encode.url.special.chars.enable
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/com.sun.identity.agents.config.encode.url.special.chars.enable.html
---

# Encode Special Characters in URLs

When `true`, encode the URL a URL with special characters before doing policy evaluation.

Default: `false`

|                    |                                                                                                |
| ------------------ | ---------------------------------------------------------------------------------------------- |
| Property name      | `com.sun.identity.agents.config.encode.url.special.chars.enable`   Introduced in Web Agent 4.x |
| Function           | URL handling                                                                                   |
| Type               | Boolean: `true` returns true; all other strings return `false`.                                |
| Bootstrap property | No                                                                                             |
| Required property  | No                                                                                             |
| Restart required   | No                                                                                             |
| AM console         | Tab: `Miscellaneous`Title: `Encode Special Characters in URLs`                                 |
