How to fix: “UnicodeDecodeError: 'ascii' codec can't decode byte”

前端 未结 19 1579
谎友^
谎友^ 2020-11-22 01:21
as3:~/ngokevin-site# nano content/blog/20140114_test-chinese.mkd
as3:~/ngokevin-site# wok
Traceback (most recent call last):
File \"/usr/local/bin/wok\", line 4, in
         


        
19条回答
  •  攒了一身酷
    2020-11-22 02:17

    I got the same problem with the string "Pastelería Mallorca" and I solved with:

    unicode("Pastelería Mallorca", 'latin-1')
    

提交回复
热议问题