[問題] 編碼問題
# coding=Big5
text = '測試'
print text
上面這樣沒問題
改成一個中文字就不行為什麼會那詭異?
# coding=Big5
text = '試'
print text
File "test.py", line 2
SyntaxError: 'big5' codec can't decode bytes in position 10-11: illegal
multibyte sequence
想請問一下python 編碼問題有什麼好點資料可以參考?
謝謝
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 175.182.197.52
※ 文章網址: https://www.ptt.cc/bbs/Python/M.1458152248.A.760.html
→
03/17 02:43, , 1F
03/17 02:43, 1F
→
03/17 02:44, , 2F
03/17 02:44, 2F
→
03/17 03:00, , 3F
03/17 03:00, 3F
→
03/17 03:00, , 4F
03/17 03:00, 4F
推
03/17 07:54, , 5F
03/17 07:54, 5F
推
03/17 07:57, , 6F
03/17 07:57, 6F
→
03/17 07:58, , 7F
03/17 07:58, 7F
討論串 (同標題文章)