# ASCII encoding on Unicode machine?

**URL:** <https://forum.djangoproject.com/t/ascii-encoding-on-unicode-machine/1458>\
**Category:** Django Internals\
**Created:** [March 12, 2020, 5:32pm UTC](https://forum.djangoproject.com/t/ascii-encoding-on-unicode-machine/1458 "2020-03-12T17:32:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MichaelGGeoda](https://avatars.discourse-cdn.com/v4/letter/m/5f9b8f/32.png) [@MichaelGGeoda](https://forum.djangoproject.com/u/MichaelGGeoda)\
**Post date:** [March 12, 2020, 5:32pm UTC](https://forum.djangoproject.com/t/ascii-encoding-on-unicode-machine/1458/1 "2020-03-12T17:32:04Z")

</div>

Hello, I have an OpenSemanticSearch machine, c.utf\_8 encoding.  
When I create Hebrew thesaurus, I am getting following error:  
**’ascii’ codec can’t decode byte 0xd7 in position 160: ordinal not in range(128)**  
This seems to happen in Django since thesaurus is managed by Django.  
The problematic code is:

_class IncrementalDecoder(codecs.IncrementalDecoder):_  
_def decode(self, input, final=False):_  
_return codecs.ascii\_decode(input, self.errors)[0]_

How can I solve the problem or at least remove problematic entries?  
Thanks!

---

<div class="post-metadata">

**Author:** ![adamchainz](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/adamchainz/32/26_2.png) [@adamchainz](https://forum.djangoproject.com/u/adamchainz)\
**Post date:** [March 12, 2020, 6:27pm UTC](https://forum.djangoproject.com/t/ascii-encoding-on-unicode-machine/1458/2 "2020-03-12T18:27:35Z")

</div>

There are no `IncrementalDecoder` classes in django. It doesn’t seem likely that the problem is inside Django itself here. Please file the issue with `OpenSemanticSearch`.
