[Answer]-How to change utf-8 to cp932 by python with django framework?

1👍

Try to convert the user instance to Unicode like this:

smart_str(unicode(t.user), encoding=encoding)

Hope this works!

Leave a comment