jevin kaneriya
jevin kaneriya

Reputation: 135

Django inernal server Error

I'm working on a Django website.
When I upload an image and its name is in English, it will be uploaded. But when I try to in Arabic it can't upload, it gives an internal server error.

Upvotes: 0

Views: 50

Answers (1)

Neeraj Kumar
Neeraj Kumar

Reputation: 3941

I think you got unicode error in server. So set both in system environment then check.

LANG='en_US.UTF-8'
LC_ALL='en_US.UTF-8'

https://code.djangoproject.com/wiki/django_apache_and_mod_wsgi#AdditionalTweaking

Upvotes: 1

Related Questions