filename = smart_unicode(file.name, encoding='cp1251',
strings_only=False, errors='strict')

destination = open('%s/%s' % (dir_path, filename), 'wb+')

 UnicodeEncodeError ('ascii', u'1.3.1.\u0421\u043b.\u041f
\u0435\u0440\u0435\u043d\u043e\u0441 \u043e\u0442\u043f
\u0443\u0441\u043a\u0430.doc', 6, 8, 'ordinal not in range(128)')

What to do ? 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to