Утилита iconv для windows

gettext version libiconv version Operating system Flavor Download
0.24 1.17 32 bit shared1
0.24 1.17 32 bit static2
0.24 1.17 64 bit shared1
0.24 1.17 64 bit static2

1: shared means that the programs make use of DLL. The setup size is small, but all the executables needs to stay together with the shipped DLL libraries.
2: static means that the programs do not use DLL. The setup size is much bigger, but all the executables may be moved around as you like, no DLL-dependencies.

Download statistics

{{ error }}

Date Version Shared Static Total Downloads/day
32 bits 64 bits 32 bits 64 bits
gettext iconv exe zip exe zip exe zip exe zip
{{ formatDate(group.createdOn) }} {{ group.vGettext }} {{ group.vIconv }} {{ formatInt(group.shared32exe) }} {{ formatInt(group.shared32zip) }} {{ formatInt(group.shared64exe) }} {{ formatInt(group.shared64zip) }} {{ formatInt(group.static32exe) }} {{ formatInt(group.static32zip) }} {{ formatInt(group.static64exe) }} {{ formatInt(group.static64zip) }} {{ formatInt(group.total) }} {{ formatFloat(getGroupdDownloadsPerDay(group)) }}
Total {{ formatInt(stats.totals.shared32exe) }} {{ formatInt(stats.totals.shared32zip) }} {{ formatInt(stats.totals.shared64exe) }} {{ formatInt(stats.totals.shared64zip) }} {{ formatInt(stats.totals.static32exe) }} {{ formatInt(stats.totals.static32zip) }} {{ formatInt(stats.totals.static64exe) }} {{ formatInt(stats.totals.static64zip) }} {{ formatInt(stats.totals.total) }}

Code Signing Policy

Since gettext v0.22.5 / iconv v1.17, the built DLLs and executables are signed.

Free code signing is provided by SignPath.io, certificate by SignPath Foundation.

The source code of gettext and iconv is created and maintained by the Free Software Foundation.

This gettext-iconv-windows project only compiles gettext and iconv for Windows, and is maintained by Michele Locati.


Do you want to see what’s behind the scenes? See the source code!

Questions? Start a discussion.

Problems? File an issue.

iconv-for-windows

iconv library for Windows (Microsoft Visual Studio Compiler) based on libiconv 1.14

Soltion file is compatible with Visual Studio 2012 only.

With pre-built configurations:

Release Win32
Release Static Win32
Debug Win32
Debug Static Win32
Release x64
Release Static x64
Debug x64
Debug Static x64

It is built in «C:\git\iconv-for-windows»

Remember to use paths like
ICONV_SOURCE, ICONV_SRC or ICONV_PATH = C:\git\iconv-for-windows
and add it to the system/build variables:
INCLUDE = C:\git\iconv-for-windows\include
LIB = C:\git\iconv-for-windows\lib (or C:\git\iconv-for-windows\lib64)

All this code based on this article: http://www.codeproject.com/Articles/302012/How-to-Build-libiconv-with-Microsoft-Visual-Studio
Thank you Youngho, you’re great!

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.
  5. 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
    

From Wikipedia, the free encyclopedia

iconv

Original author(s) Hewlett-Packard
Developer(s) Various open-source and commercial developers
Repository https://git.savannah.gnu.org/git/libiconv.git
Operating system Unix, Unix-like, Microsoft Windows, IBM i
Platform Cross-platform
Type Command
License libiconv: LGPL
iconv: GPL
win-iconv: Public domain[1]

In Unix and Unix-like operating systems, iconv (an abbreviation of internationalization conversion)[2] is a command-line program[3] and a standardized application programming interface (API)[4] used to convert between different character encodings. «It can convert from any of these encodings to any other, through Unicode conversion.»[5]

Initially appearing on the HP-UX operating system,[6]iconv() as well as the utility was standardized within XPG4 and is part of the Single UNIX Specification (SUS).

Most Linux distributions provide an implementation, either from the GNU Standard C Library (included since version 2.1, February 1999), or the more traditional GNU libiconv, for systems based on other Standard C Libraries.

The iconv function[7] on both is licensed as LGPL, so it is linkable with closed source applications.

Unlike the libraries, the iconv utility is licensed under GPL in both implementations.[8]
The GNU libiconv implementation is portable, and can be used on various UNIX-like and non-UNIX systems. Version 0.3 dates from December 1999.

The uconv utility from International Components for Unicode provides an iconv-compatible command-line syntax for transcoding.

Most BSD systems use NetBSD’s implementation, which first appeared in December 2004.

The musl C library implements the iconv function with support for all encodings specified by the WHATWG Encoding Standard.

Currently, over a hundred different character encodings are supported in the GNU variant.[5]

Under Microsoft Windows, the iconv library and the utility is provided by GNU’s libiconv found in Cygwin[9] and GnuWin32[10] environments; there is also a «purely Win32» implementation called «win-iconv» that uses Windows’ built-in routines for conversion.[11] The iconv function is also available for many programming languages.

The iconv command has also been ported to the IBM i operating system.[12]

stdin can be converted from ISO-8859-1 to current locale and output to stdout using:[13]

An input file infile can be converted from ISO-8859-1 to UTF-8 and output to output file outfile using:

iconv -f iso-8859-1 -t utf-8 <infile> -o <outfile>
  • uconv
  • luit
  • List of Unix commands
  • International Components for Unicode
  1. ^ «win-iconv/readme.txt at master · win-iconv/win-iconv · GitHub». GitHub.
  2. ^ «R: Convert Character Vector between Encodings». astrostatistics.psu.edu. Retrieved 21 April 2018.
  3. ^ «iconv». pubs.opengroup.org. Retrieved 21 April 2018.
  4. ^ «iconv». www.opengroup.org. Retrieved 21 April 2018.
  5. ^ a b «libiconv — GNU Project — Free Software Foundation (FSF)». www.gnu.org. Retrieved 21 April 2018.
  6. ^ «iconv(3C)». docstore.mik.ua. Retrieved 21 April 2018.
  7. ^ «glibc: iconv/iconv.c». Retrieved 30 November 2016.[permanent dead link]
  8. ^ «glibc: iconv/iconv_prog.c». Retrieved 30 November 2016.[permanent dead link]
  9. ^ «Cygwin Package Search: libiconv». Archived from the original on 30 November 2016. Retrieved 30 November 2016.
  10. ^ «LibIconv for Windows». gnuwin32.sourceforge.net. Retrieved 21 April 2018.
  11. ^ «win32-iconv». GitHub. Retrieved 30 November 2016.
  12. ^ IBM. «IBM System i Version 7.2 Programming Qshell» (PDF). IBM. Retrieved 5 September 2020.
  13. ^ «IBM Knowledge Center». www-01.ibm.com. Retrieved 21 April 2018.
  • iconv() OpenGroup Standards page
  • GNU libiconv, code
  • win_iconv

Понравилась статья? Поделить с друзьями:
0 0 голоса
Рейтинг статьи
Подписаться
Уведомить о
guest

0 комментариев
Старые
Новые Популярные
Межтекстовые Отзывы
Посмотреть все комментарии
  • Windows 10 слетает шлюз
  • Создать локальную учетную запись windows 10 после установки
  • Windows shift s не работает скрин экрана windows 11
  • Как поставить mac os вместо windows
  • Как полностью поменять язык в windows 10