Reading a UTF8 CSV file with Python

后端 未结 9 1624
青春惊慌失措
青春惊慌失措 2020-11-22 12:20

I am trying to read a CSV file with accented characters with Python (only French and/or Spanish characters). Based on the Python 2.5 documentation for the csvreader (http://

9条回答
  •  刺人心
    刺人心 (楼主)
    2020-11-22 13:02

    Had the same problem on another server, but realized that locales are messed.

    export LC_ALL="en_US.UTF-8"
    

    fixed the problem

提交回复
热议问题