OK I found a clue regarding that issue: print(sys.getfilesystemencoding()) at the console prompt produces 'UTF-8' whereas in the failing script ' ANSI_X3.4-1968'. I now understand why the conversion fails (in that case Python returns a byte string and this is not documented in Python doc).
Is the problem in mod_wsgi ? Thanks -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.