﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
11739	ContentFile() does not support unicode data	Adam Nelson	nobody	"It's not clear to me where exactly this is a bug but it's certainly a problem.  This example is for a model PageDisplay with a FileField named 'content':

{{{
>>> pager = PageDisplay.objects.get(id=4)
>>> pager
<PageDisplay: http://debtshed.com:8888/>
>>> pager.content
<FieldFile: None>
>>> from django.core.files.base import ContentFile
>>> pager.content.save('tester.html',ContentFile('test1'))
>>> pager.content.read()
'test1'
>>> pager.content.save('tester.html',ContentFile(u'test1'))
>>> pager.content.read()
't\x00e\x00s\x00t\x001\x00'

}}}

I'm not sure if this is working on the save and not the read or vice versa but I presume that the unicode translation should be symmetrical.
"	Bug	closed	File uploads/storage	1.1	Normal	fixed			Accepted	1	0	0	0	0	0
