---
title: Encode Special Characters in Cookies
description: When true, use URL encoding for special characters in cookies. This is useful when profile, session, and response attributes contain special characters, and the attributes fetch mode is set to HTTP_COOKIE.
component: web-agents
version: 2025.11
page_id: web-agents:properties-reference:com.sun.identity.agents.config.encode.cookie.special.chars.enable
canonical_url: https://docs.pingidentity.com/web-agents/2025.11/properties-reference/com.sun.identity.agents.config.encode.cookie.special.chars.enable.html
---

# Encode Special Characters in Cookies

When `true`, use URL encoding for special characters in cookies. This is useful when profile, session, and response attributes contain special characters, and the attributes fetch mode is set to `HTTP_COOKIE`.

Default: `false`

|                    |                                                                                                   |
| ------------------ | ------------------------------------------------------------------------------------------------- |
| Property name      | `com.sun.identity.agents.config.encode.cookie.special.chars.enable`   Introduced in Web Agent 4.x |
| Function           | Cookies                                                                                           |
| 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 Cookies`                                 |
