> For the complete documentation index, see [llms.txt](https://docs.cw.crisisworks.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cw.crisisworks.com/security-and-support/faqs/troubleshooting/correspondence/strange-characters-in-pdf-mail-merge.md).

# Strange characters in PDF mail merge

## Problem

When [generating a mail merge](https://docs.cw.crisisworks.com/concepts-and-fundamentals/on-a-computer/using-the-datagrid/bulk-actions.md#generate-merge), strange characters are appearing in the PDF output.

## Explanations

### Non-standard characters

Copy and paste from applications such as Microsoft Word can put non-standard characters into the HTML which is converted into Unicode.

These mainly include punctuation such as:

* Curved apostrophes
* Curved quotes
* Dashes of various lengths (such as the long dash)

<figure><img src="https://3923904090-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNy7IznbrPLUq6GJDDQDk%2Fuploads%2F07UXwDczcfAvK8kulKNC%2Fimage.png?alt=media&amp;token=6746cea2-b00e-4863-882c-46725d5ce32b" alt=""><figcaption><p>example of strange characters resulting from use of a wrong apostrophe</p></figcaption></figure>

#### Solution

Locate the non-standard characters and replace them with web safe (Unicode) alternatives.

This can also be achieved by copying the text into a plain text editor like Notepad (Windows) or TextEdit (macOS) to strip out the non-standard text).

## More Help

If you've read through these instructions and are still stuck [contact the Service Desk](https://docs.cw.crisisworks.com/security-and-support/maintenance-and-support/accessing-support.md) we can assist you to identify potential problems with the template/s.

Send us a copy of your HTML via the service desk and we can help to resolve the issue.


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.cw.crisisworks.com/security-and-support/faqs/troubleshooting/correspondence/strange-characters-in-pdf-mail-merge.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
