# Invalid byte sequence error during install

**URL:** <https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430>\
**Category:** Self-hosting\
**Created:** [May 14, 2018, 12:43pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430 "2018-05-14T12:43:47Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)\
**Post date:** [May 14, 2018, 1:01pm UTC](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430/4 "2018-05-14T13:01:55Z")

</div>

Run the following command:

`sudo dpkg-reconfigure locales`

then select and enable `en_US.UTF-8 UTF-8` and default it to `en_US.UTF-8` on the next page.

after that, Run ./discourse-setup once again. this should be fixed.

---

_[View the full topic](https://meta.discourse.org/t/invalid-byte-sequence-error-during-install/87430)._
