Loading...

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

Temperature: 0 °C

蘇恆永 蘇恆永
author_tools

記錄一下

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

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

 

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

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

真會找理由

真會找理由

玥玥昨天去童軍團, 大家一起做紙箱車, 玩得超開心的。 但最後童軍團圍在一起, 大家在做隊呼的時候,...

一日水電工

一日水電工

從上個月開始, 家裡洗手枱的水龍頭就開始漏水, 起初小孩跟我說水龍頭關起來的時候會達達達達達.......

今天真的不是我的日子

今天真的不是我的日子

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

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