How to write UTF-8 in a CSV file

前端 未结 7 1523
一生所求
一生所求 2020-11-27 03:30

I am trying to create a text file in csv format out of a PyQt4 QTableWidget. I want to write the text with a UTF-8 encoding because it contains special characte

7条回答
  •  执笔经年
    2020-11-27 04:01

    The examples in the Python documentation show how to write Unicode CSV files: http://docs.python.org/2/library/csv.html#examples

    (can't copy the code here because it's protected by copyright)

提交回复
热议问题