zoukankan      html  css  js  c++  java
  • UTF-8 与 BIG-5 转码

    BIG-5 轉 UTF-8

    若要將一個文字檔從 BIG-5 編碼轉換為 UTF-8 編碼,可以執行:

    iconv -f BIG-5 -t UTF-8 big5.txt > utf8.txt

    其中 big5.txt 是輸入的文字檔檔名,轉換出來會輸出到 utf8.txt 這個檔案中。

    -f 參數是指定輸入檔的編碼,而 -t 則是指定輸出檔的編碼,我們可以使用 -l參數查詢 iconv 所支援的編碼列表:

    iconv -l

    --

    UTF-8 轉 BIG-5

    若要將 UTF-8 編碼的文字檔轉為 BIG-5,則執行:

    iconv -f UTF-8 -t BIG-5 utf8.txt > big5.txt

    經過 iconv 轉換成正確的編碼之後,就可以正常顯示文字檔的內容了。

     
  • 相关阅读:
    输入分隔符
    GO
    match|align|identify|cover_rate
    KEGG
    InterProScan
    Functional annotation
    GeneWise
    get middle lines
    goland debug web app with urfave cli
    go mod proxy
  • 原文地址:https://www.cnblogs.com/kakaisgood/p/8027541.html
Copyright © 2011-2022 走看看