ToolBox系列工具之Detector

2021-06-27 19:08:59 字數 1059 閱讀 7956

toolbox系列工具之detector

path -e target_encoding

複製**

比如我的c盤的test資料夾下有一堆需要轉換的檔案(夾),想轉換成utf-8編碼的格式,我可以這樣用,雙擊toolbox_detector,輸入:

c:\test -e utf-8

比如我的d盤target資料夾下有個test.txt檔案需要轉換為shift_jis格式,我可以這樣用,雙擊toolbox_detector,輸入:

d:\target\test.txt -e shift_jis

工具用python寫成,使用了開源框架chardet。目前支援的格式有

big5, gb2312/gb18030, euc-tw, hz-gb-2312, and iso-2022-cn (traditional and simplified chinese)

euc-jp, shift_jis, and iso-2022-jp (japanese)

euc-kr and iso-2022-kr (korean)

koi8-r, maccyrillic, ibm855, ibm866, iso-8859-5, and windows-1251 (russian)

iso-8859-2 and windows-1250 (hungarian)

iso-8859-5 and windows-1251 (bulgarian)

windows-1252

iso-8859-7 and windows-1253 (greek)

iso-8859-8 and windows-1255 (visual and logical hebrew)

tis-620 (thai)

utf-32 be, le, 3412-ordered, or 2143-ordered (with a bom)

utf-16 be or le (with a bom)

utf-8 (with or without a bom)

ascii

ITIL工具系列之Open View

open view 是 hp 分布式的客戶機 伺服器模式的軟體平台,整合了網路管理和系統管理各自的優點,形成乙個單一而完整的管理系統,用於為企業的系統 應用或服務提供服務驅動資訊和效能管理。open view 解決方案實現了網路運作從被動無序到主動控制的過渡,使 it部門及時了解整個網路當前的真實狀...

Spark系列之工具Jupyter

配置安裝bzip2 yum y install bzip2 1 bash anaconda3 2020.07 linux x86 64.sh 2 回車通過 3 配置環境變數 export path root anaconda3 bin path 4 啟動 jupyter notebook ip bi...

DOM節點刪除之保留資料的刪除操作detach

如果我們希望臨時刪除頁面上的節點,但是又不希望節點上的資料與事件丟失,並且能在下乙個時間段讓這個刪除的節點顯示到頁面,這時候就可以使用detach方法來處理 p p元素1,預設給繫結乙個點選事件 p p p元素2,預設給繫結乙個點選事件 p button id bt1 點選刪除 p 元素 butto...