Django Framework, Apache Error for Turkish Characters

In Progress Posted 6 years ago Paid on delivery
In Progress Paid on delivery

Our project programming language is Python 3.6.2. Operation system Centos [login to view URL] are using Apache/2.4.6, Django framework (1, 11, 6, 'final', 0) , and database MySQL 5.7.19.

We get error at below when we use Turkish characters. We define " # -*- coding: utf-8 -*- " the source code encoding at top of Python soruce files but continue taking the same error.

How can we fix this issue?

***********************************

UnicodeEncodeError at /admin/adminpanel/abonebilgileri/3/change/

'ascii' codec can't encode character u'\xd6' in position 6: ordinal not in range(128)

Request Method: GET

Request URL: http://x.x.x.x:8880/admin/xxxpanel/xxx/3/change/

Django Version: 1.11.4

Exception Type: UnicodeEncodeError

Exception Value:

'ascii' codec can't encode character u'\xd6' in position 6: ordinal not in range(128)

Exception Location: /usr/lib64/python2.7/site-packages/django/utils/[login to view URL] in force_text, line 80

Python Executable: /usr/bin/python

Python Version: 2.7.5

Python Path:

['/var/www/xxx/xxx/xxxprj',

'/usr/lib64/[login to view URL]',

'/usr/lib64/python2.7',

'/usr/lib64/python2.7/plat-linux2',

'/usr/lib64/python2.7/lib-tk',

'/usr/lib64/python2.7/lib-old',

'/usr/lib64/python2.7/lib-dynload',

'/usr/lib64/python2.7/site-packages',

'/usr/lib64/python2.7/site-packages/gtk-2.0',

'/usr/lib/python2.7/site-packages']

Server time: Pzt, 5 Şub 2018 06:30:13 +0000

***********************************

Django Linux MySQL PHP Python

Project ID: #16241067

About the project

Remote project Active 6 years ago