Csv utf-8 writer - python2.4 compatibility

At the bottom of this guide http://docs.python.org/library/csv.html there is an example of UnicodeWriter

But how can I use this example in python 2.4

I have an exception from codecs.getincrementalencoder (encoding) (). The getincrementalencoder property was created only in version 2.5. Who can replace this property?

Thank!

+3
source share
1 answer

Not sure if this will work, but try using instead codecs.getencoder.

+1
source

Source: https://habr.com/ru/post/1725770/


All Articles