# Error importing from vanilla: invalid byte sequence in UTF-8

**URL:** <https://meta.discourse.org/t/error-importing-from-vanilla-invalid-byte-sequence-in-utf-8/104320>\
**Category:** Migration\
**Created:** [December 14, 2018, 11:30pm UTC](https://meta.discourse.org/t/error-importing-from-vanilla-invalid-byte-sequence-in-utf-8/104320 "2018-12-14T23:30:53Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Nick\_Chomey](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nick_chomey/32/215378_2.png) [@Nick\_Chomey](https://meta.discourse.org/u/Nick_Chomey)\
**Post date:** [November 11, 2021, 12:27pm UTC](https://meta.discourse.org/t/error-importing-from-vanilla-invalid-byte-sequence-in-utf-8/104320/11 "2021-11-11T12:27:29Z")

</div>

We got this to work by adding a simple command to encode the file as UTF-8 while reading it, using something like `encode"UTF-8"` on lines 76-80 of the vanilla.rb import script.

I’m just waiting for confirmation on the exact syntax from the guy who did it via command line. I will update this when it I have it.

---

_[View the full topic](https://meta.discourse.org/t/error-importing-from-vanilla-invalid-byte-sequence-in-utf-8/104320)._
