How to print/store non-ASCII characters (unicode?)

前端 未结 2 790
时光取名叫无心
时光取名叫无心 2021-01-24 04:23

I am reading in a large file of musicians. Many of these artists have strange characters in their names, as they may be from Germany or some other country with non-ASCII charac

2条回答
  •  不要未来只要你来
    2021-01-24 04:58

    just include these two line at the top of your code

    1. #!/usr/local/bin/python
    2. # coding: latin-1

    go to this link for further details

提交回复
热议问题