# UnicodeEncodeError Ubuntu, Apache2, Admin page

**URL:** <https://forum.djangoproject.com/t/unicodeencodeerror-ubuntu-apache2-admin-page/29351>\
**Category:** Mystery Errors\
**Created:** [March 21, 2024, 5:21pm UTC](https://forum.djangoproject.com/t/unicodeencodeerror-ubuntu-apache2-admin-page/29351 "2024-03-21T17:21:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jeppewho](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/jeppewho/32/9077_2.png) [@jeppewho](https://forum.djangoproject.com/u/jeppewho)\
**Post date:** [March 24, 2024, 11:28am UTC](https://forum.djangoproject.com/t/unicodeencodeerror-ubuntu-apache2-admin-page/29351/2 "2024-03-24T11:28:09Z")

</div>

Finally found the problem.

I can’t answer why the app works as normal if I don’t use the admin page.  
My guess is that the admin page read files a bit different.  
Now, however, the admin page loads all the models as well.

In /etc/apache2/envvars :  
From

```auto
## The locale used by some modules like mod_dav
export LANG=C
## Uncomment the following line to use the system default locale instead:
#. /etc/default/locale

export LANG

```

To

```auto
## The locale used by some modules like mod_dav
#export LANG=C
## Uncomment the following line to use the system default locale instead:
. /etc/default/locale

export LANG
```

---

_[View the full topic](https://forum.djangoproject.com/t/unicodeencodeerror-ubuntu-apache2-admin-page/29351)._
