ICONV for Windows

ICONV for Windows

This is a short memo about installing iconv on Windows host (specifically: Windows 7 SP1 x64). Iconv is a handy Unix/Linux tool that is used for conversion between different character encodings.
Unfortunately, I’m not always in a position to use my favorite Linux distro at job, so here is a short recipe on how to setup iconv port for Win32.

  1. Download libiconv-1.9.1.bin.woe32.zip from Sourgeforge.net
  2. Download support library gettext-runtime-0.13.1.bin.woe32.zip from here. Make sure that you download exactly the version 0.13.1 and NOT newer, due to some compatibility issues!
  3. Create some directory, such as C:\UNIXUTIL\iconv
  4. Unzip the content of \bin from both zip files and save the content together in above directory.

    The final content of iconv directory should look like this:

    C:\UNIXUTIL\iconv>dir
     Volume in drive C has no label.
     Volume Serial Number is A88E-6A42
    
     Directory of C:\UNIXUTIL\iconv
    
    11.10.2012  13:33    <DIR>          .
    11.10.2012  13:33    <DIR>          ..
    14.01.2004  21:59            28.672 asprintf.dll
    14.01.2004  01:56            24.576 charset.dll
    14.01.2004  21:59            20.480 envsubst.exe
    14.01.2004  21:59            20.480 gettext.exe
    07.10.2003  21:17             2.715 gettext.sh
    14.01.2004  01:56           892.928 iconv.dll
    14.01.2004  01:56            16.384 iconv.exe
    14.01.2004  21:59            45.056 intl.dll
    14.01.2004  21:59            20.480 ngettext.exe
                  11 File(s)      1.071.780 bytes
                   2 Dir(s)  57.396.654.080 bytes free
    
    C:\UNIXUTIL\iconv>
    

    Usage:

    C:\UNIXUTIL\iconv>iconv --help
    Usage: iconv [--binary] [-c] [-s] [-f fromcode] [-t tocode] [file ...]
    or:    iconv -l
    

    List of supported code pages:

    C:\UNIXUTIL\iconv>iconv -l
    

    Example of converting file from utf-8 to cp1250 encoding:

    C:\UNIXUTIL\iconv>iconv -f utf-8 -t cp1250 utf-8.txt > cp1250.txt
    

Posted on 24.10.2012, in MS Windows and tagged windows. Bookmark the permalink. Comments Off.

    Comments are closed.

    • 0
      点赞
    • 1
      收藏
      觉得还不错? 一键收藏
    • 0
      评论

    “相关推荐”对你有帮助么?

    • 非常没帮助
    • 没帮助
    • 一般
    • 有帮助
    • 非常有帮助
    提交
    评论
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

    当前余额3.43前往充值 >
    需支付:10.00
    成就一亿技术人!
    领取后你会自动成为博主和红包主的粉丝 规则
    hope_wisdom
    发出的红包
    实付
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

    余额充值