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
i used the template method to get it working because it was the faster
and easier way thank you for pointing me there!
if someone knows how to make it work directly with the python csv i
would be interested to see how it should be implemented!
mettwoch wrote:
> I ran into the same problem
I ran into the same problem and I found in the Python documentation
that the csv module has some Unicode issues ...
http://docs.python.org/library/csv.html?highlight=csv#module-csv
... with an attempt to getting around it with a wrapper ...
http://docs.python.org/library/csv.html?highlight=csv#
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?
#my csvexport.py
import csv
from django.http import HttpResponse
from django.contrib.auth.decorators im
4 matches
Mail list logo