andreas schmid wrote:
> hi,
>
> i successfully made a csv export view for a queryset but i have the
> problem with some characters...
> how can i encode the queryset passed to the csv writer to solve my problem?
>
FWIW, I just did the following:
for line in lines:
writer.writerow(
[unicode(s).encode("utf-8") for s in (
line.field1,
line.field2,
)
]
)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---