Revision c4e22972

b/snf-django-lib/snf_django/lib/api/__init__.py
75 75
        @wraps(func)
76 76
        def wrapper(request, *args, **kwargs):
77 77
            try:
78
                # Explicitly set request encoding to UTF-8 instead of relying
79
                # to DEFAULT_CHARSET setting. See:
80
                # https://docs.djangoproject.com/en/1.4/ref/unicode/#form-submission
81
                request.encoding = 'utf-8'
82

  
78 83
                # Get the requested serialization format
79 84
                serialization = get_serialization(
80 85
                    request, format_allowed, serializations[0])

Also available in: Unified diff