Re: UnicodeEncodeError on csv export

2009-08-20 Thread David De La Harpe Golden
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

Re: UnicodeEncodeError on csv export

2009-08-20 Thread andreas schmid
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

Re: UnicodeEncodeError on csv export

2009-08-20 Thread mettwoch
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#

UnicodeEncodeError on csv export

2009-08-20 Thread andreas schmid
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