Opened 7 years ago

Closed 7 years ago

#28390 closed Bug (needsinfo)

"Fixing UnicodeEncodeError for file uploads" instructions don't work on CentOS 7

Reported by: Francesco Bartoli Owned by: nobody
Component: Documentation Version: 1.8
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description (last modified by Tim Graham)

From the suggested hints within "Fixing UnicodeEncodeError for file uploads" don't overcome the issue with UnicodeEncodeError on CentOS 7.

Configuration is:

CentOS Linux release 7.3.1611 (Core)

Name        : httpd
Arch        : x86_64
Version     : 2.4.6
Release     : 45.el7.centos.4

Name        : mod_wsgi
Arch        : x86_64
Version     : 3.4
Release     : 12.el7_0

Setting those variables into /etc/sysconfig/httpd

export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"

doesn't affect the result of

import sys

and the traceback is

Traceback: File "/usr/lib/python2.7/site-packages/django/core/handlers/" in get_response 132. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/site-packages/django/contrib/auth/" in _wrapped_view 22. return view_func(request, *args, **kwargs) File "/home/geonode/geonode/geonode/layers/" in layer_upload 174. out['errors'] = str(error) Exception Type: UnicodeEncodeError at /layers/upload Exception Value: 'ascii' codec can't encode character u'\xe8' in position 3: ordinal not in range(128) Request information: GET: No GET data POST: charset = u'UTF-8' 

Change History (2)

comment:1 by Francesco Bartoli, 7 years ago

Description: modified (diff)

comment:2 by Tim Graham, 7 years ago

Component: File uploads/storageDocumentation
Description: modified (diff)
Resolution: needsinfo
Status: newclosed
Summary:"Fixing UnicodeEncodeError for file uploads" instructions don't work on CentOS 7

You'll be more likely to get help on our support channels. If it turns out some improvement to the Django documentation is needed, then please reopen the ticket with details. Thanks.

Note: See TracTickets for help on using tickets.
Back to Top