看板 Python 關於我們 聯絡資訊
※ 引述《Lucemia (生の直感、死の予感)》之銘言: : 但是在python需要自動轉換code時 要怎麼處理呢? : 像我知道在存寫檔時可以用 codec.open 來取代 : 但是其他像是在odbc 中的cursor.execute('... 資料..')中 : python就會自動將unicode的code轉成 ascii : 然後就當場掛掉.. 這種問題要怎麼解決比較好? 不確定你說「自動轉換 codec」是什麼意思, 猜測是想自動偵測 encoding? http://www.hemidemi.com/group/python/bookmark/info/41099 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 220.134.27.8