# Special Notes on Windows

### Setting the PYTHONENCODING Variable

In some Windows environments, Safety CLI will return an error when performing scans on files or directories that include special or accented characters, e.g. é, è, à, ç, et al.

This issue occurs because the `PYTHONIOENCODING` variable is empty or not set to `utf-8`.

If you are using the Windows CMD, you can set the variable in the following way:

```
set PYTHONIOENCODING=utf-8
safety scan --output screen > results.txt
```

This set command updates the value per terminal session; if you want to do it permanently, you must add `PYTHONIOENCODING` with the value `utf-8` to your environment variables on Windows.


---

# Agent Instructions: 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:

```
GET https://docs.safetycli.com/safety-docs/support/support/special-notes-on-windows.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
