开发者

csv utf-8 writer - compability with python2.4

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜