問題:字串的編碼不同
處理方式:在適當點加上 .encode("gb2312")
問題範例:http://hi.baidu.com/daping_zhang/blog/item/09dda71ea9d7d21f4134173e.html
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128) 錯誤處理
by 阿飄 | Wednesday, October 28, 2009 in App Engine, 程式設計 |
0 回覆:
Subscribe to:
Post Comments (Atom)
Post a Comment