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

這麼多蛾,我沒一隻認識的

這麼多蛾,我沒一隻認識的

和朋友相聚露營, 沒想到晚上淋浴間到處都是蛾, 我沒一隻認識的 翔翔認真的用蓮篷頭一隻一隻沖水, 趕...

真會找理由

真會找理由

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

一日水電工

一日水電工

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

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