Changes between Version 1 and Version 2 of Ticket #28390


Ignore:
Timestamp:
Jul 12, 2017, 9:07:06 AM (7 years ago)
Author:
Tim Graham
Comment:

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.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #28390

    • Property Component File uploads/storageDocumentation
    • Property Resolutionneedsinfo
    • Property Status newclosed
    • Property Summary https://docs.djangoproject.com/en/1.8/howto/deployment/wsgi/modwsgi/"Fixing UnicodeEncodeError for file uploads" instructions don't work on CentOS 7
  • Ticket #28390 – Description

    v1 v2  
    22
    33Configuration is:
    4 
     4{{{
    55[OS]
    66CentOS Linux release 7.3.1611 (Core)
     
    1717Version     : 3.4
    1818Release     : 12.el7_0
    19 
     19}}}
    2020Setting those variables into /etc/sysconfig/httpd
     21{{{
    2122export LANG="en_US.UTF-8"
    2223export LC_ALL="en_US.UTF-8"
    23 
     24}}}
    2425doesn't affect the result of
     26{{{
    2527import sys
    2628sys.getdefaultencoding()
    2729'ascii'
    28 
     30}}}
    2931and the traceback is
    30 
     32{{{
    3133Traceback: File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py" in get_response 132. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/usr/lib/python2.7/site-packages/django/contrib/auth/decorators.py" in _wrapped_view 22. return view_func(request, *args, **kwargs) File "/home/geonode/geonode/geonode/layers/views.py" 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'
     34}}}
Back to Top