Loading...

Python 如何把 big5 text 轉成 utf-8 string

Temperature: 0 °C

蘇恆永 蘇恆永
記錄一下

# 先轉成 latin1,再轉回 big5 ......

big5text.encode('latin1', 'ignore').decode('big5')

 
https://innstory.com/story-Python_如何把_big5_text_轉成_utf8_string-1829

Prev
 Dockers_Monitoring_Tools

Next
等待還原資料庫中好久喔 

About the Author

蘇恆永

重新 pickup 本能中

Visitor message

Leave some footprints to prove that you visited me

Recommended reading

Author's other related stories

今天真的不是我的日子

今天真的不是我的日子

下午公司機房排插跳掉 主機全掛, 突然客戶資料庫爆掉, 救完後繼續回復公司主機, 發覺...

Please select an option

error

Hi, thank you for your participation, but you cannot vote repeatedly~

Join innstory now and start recording your story.

"Innstory" is a place to store stories. We are committed to becoming a warm platform. Deepening the bonds between people is our direction.
We are convinced that the blockchain between people is not just a cold calculation. Join us now.

Wrong format