上载带有非ASCII字符的文件时,我会发现UnicodeError:
Exception Type: UnicodeEncodeError at /admin/studio/newsitem/add/
Exception Value: 'ascii' codec can't encode character u'\xf8' in position 78: ordinal not in range(128)
请参见full stack trace.
我用MySQL、nginx和FastCGI运行Django 1.2.
这是一个根据Django Trac database解决的问题,但我仍然有这个问题.欢迎任何关于如何修复的建议.
编辑:这是我的图像字段:
image = models.ImageField(_('image'), upload_to='uploads/images', max_length=100)