laskuma
V2EX  ›  问与答

mac下如何把GBK编码的txt文档转成UTF-8编码的?

  •  
  •   laskuma · Dec 27, 2012 · 18753 views
    This topic created in 5061 days ago, the information mentioned may be changed or developed.
    4 replies  •  1970-01-01 08:00:00 +08:00
    wwwjfy
    wwwjfy
    Dec 28, 2012❤️1
    1
    iconv
    Sivan
    Sivan
    Dec 28, 2012❤️2
    2
    免费的 TextWrangler 就可以,BBEdit 也行。
    打开后选择 "Reopen Using Encoding...",然后转到 UTF-8 再保存就行了。
    btpot
    btpot
    Dec 28, 2012❤️4
    3
    在终端执行iconv命令最简单了:iconv -f GBK -t UTF-8 old.txt > new.txt
    laskuma
    laskuma
    OP
    Dec 28, 2012
    4
    感谢各位了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4715 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 07:54 · PVG 15:54 · LAX 23:54 · JFK 02:54
    ♥ Do have faith in what you're doing.