# Mail archive not displaying special characters

### Issue

In the mail archive or the view it online link we display the mail that was sent with all the dynamic content frozen when the email is sent.

To do it we have created a new table acym\_mail\_archive in which we save the content of the email.

On some servers, the default collation and charset of the table might be wrong even if we add it in the table creation.

The charset (character set) should be utf8 and the collation should be utf8\_general\_ci

{% tabs %}
{% tab title="With PhpMyAdmin" %}
Connect to your PhpMyAdmin and search the table `acym_mail_archive`.

Then go to the **Operation** tab on the top and select `utf8_general_ci` and don't forget to check the option **Change all column collations** to apply the modification to all columns of the table.

<figure><img src="/files/IZLuF7uxCcCNtoqAzc90" alt=""><figcaption></figcaption></figure>
{% endtab %}

{% tab title="With MySQL Workbench" %}
Connect to your server with MySQL Workbench and search for the table `acym_maim_archive`.

Once you've found it click on the spanner icon to configure the table.

<figure><img src="/files/hdd6OA4jfT3x8Ec9CIZK" alt=""><figcaption></figcaption></figure>

On the configuration page, you have to click on the double arrow icon in the top right corner to display the collation option.\
Once you've displayed it you can change the **Collation** to `utf8` in the first select and then `utf8_general_ci` in the second select.

You can now click on the apply button on the bottom right corner.

<figure><img src="/files/4OsYajN60I2nMBtYdLvJ" alt=""><figcaption></figcaption></figure>

Once this is done you have to verify every column (body, subject, settings, stylesheet, attachments) to the right collation if the new default one is not set.

To do it, on the same configuration page, click on every column mentioned below and change its **collation** settings to default.

* body
* subject
* settings
* stylesheet
* attachments

Once it's done you can click on the apply button

<figure><img src="/files/bUdem7VPfCgq5arSMTh4" alt=""><figcaption></figcaption></figure>
{% endtab %}
{% endtabs %}

Once the collation is fixed on your table, you can run the following SQL query to clear the existing archive and force AcyMailing to re-generate it:

```sql
// Replace the "xxxx_" by the real table prefix or your database
DELETE FROM XXXX_acym_mail_archive WHERE 1 = 1
```


---

# 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.acymailing.com/faq/mail-archive-not-displaying-special-characters.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.
