# Special Characters are not showing correctly

**URL:** https://forum.infinityfree.com/t/special-characters-are-not-showing-correctly/105086
**Category:** Hosting Support
**Created:** [January 28, 2025, 10:23am UTC](https://forum.infinityfree.com/t/special-characters-are-not-showing-correctly/105086 "2025-01-28T10:23:37Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![dan3008](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/dan3008/32/53336_2.png) [@dan3008](https://forum.infinityfree.com/u/dan3008)
#### Post date: [January 28, 2025, 11:19am UTC](https://forum.infinityfree.com/t/special-characters-are-not-showing-correctly/105086/5 "2025-01-28T11:19:18Z")

</div>

> [@pereiragtiago](#):
>
> pecial characters like “~” are not showing

I had a similar problem and i needed to add “charset=utf8mb4” into my connection string when connecting to the database and that fixed it.

My php looked like this

```auto
new PDO("mysql:host=$servername;dbname=$dbname;charset=utf8mb4", $username, $password);

```

Might be worth a try.

---

_[View the full topic](https://forum.infinityfree.com/t/special-characters-are-not-showing-correctly/105086)._
