Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

csv utf-8 writer - compability with python2.4

Tags:

python

csv

utf-8

At the bottom of this manual http://docs.python.org/library/csv.html we have example of UnicodeWriter

But how can i use this example in python 2.4

I got exception about codecs.getincrementalencoder(encoding)(). Property getincrementalencoder created only in version 2.5. Who can replace this property?

Thanks!

like image 262
Oduvan Avatar asked Dec 03 '25 05:12

Oduvan


1 Answers

Not sure if it will work, but try to use codecs.getencoder instead.

like image 151
codeape Avatar answered Dec 04 '25 19:12

codeape



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!