开发者

csv utf-8 writer - compability with python2.4

开发者 https://www.devze.com 2022-12-14 15:11 出处:网络
At the bottom of this manual http://docs.python.org/library/csv.html we have example of UnicodeWriter

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开发者_C百科.getincrementalencoder(encoding)(). Property getincrementalencoder created only in version 2.5. Who can replace this property?

Thanks!


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

0

精彩评论

暂无评论...
验证码 换一张
取 消