[問題] utf-8的問題

看板Python作者 (Zec)時間17年前 (2008/02/10 12:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/5 (看更多)
Traceback (most recent call last): File "C:\Documents and Settings\chiao\\WorkSpace\weather\src\weather.py", line 53, in <module> print "%s %s %s %s %s" % tuple(Parser.weather) UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-3: ordinal not in range(128) -- 我用eclipse和pydev來執行的 eclipse 的 console encoding 和 text file encoding 都改成 utf-8 了 code的來源是這裡 http://victorlin.serveftp.org/programming/article/?article_id=24 複製下來的code,用python shell直接執行倒是正確無誤 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.117.195.29
文章代碼(AID): #17hkyXc_ (Python)
討論串 (同標題文章)
以下文章回應了本文
17年前, 2008/02/10 14:19
完整討論串 (本文為第 1 之 5 篇):
17年前, 2008/02/11 10:48
17年前, 2008/02/11 04:56
17年前, 2008/02/10 14:35
17年前, 2008/02/10 14:19
17年前, 2008/02/10 12:33
文章代碼(AID): #17hkyXc_ (Python)