[Answer]-Django: How to upload file without UnicodeEncodeError on save()?

1👍

this url have information about, Django: How to upload file without UnicodeEncodeError on save()?

an for me work this:

import locale
import sys

def my_views(request):
    # before 
    reload(sys)
    sys.setdefaultencoding("utf-8")

Leave a comment