laskuma
V2EX  ›  问与答

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

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