# detect_dangerous_unicode

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/unicode_security/detect_dangerous_unicode)

Detect deceptive or hidden Unicode code points in text.

## Signature

```python
detect_dangerous_unicode(
    text: str,
) -> list[UnicodeIssue]
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `text` | `str` | Yes | Input text to inspect. |

## Returns

`list[UnicodeIssue]`

A list of `UnicodeIssue` entries in source order.

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/d1c6946218b4f0f86ab7b02b6bb6af1e4b75cede/libs/code/deepagents_code/unicode_security.py#L140)