The iconv package

[Tags: bsd3, library]

Provides an interface to the POSIX iconv library functions for string encoding conversion.


[Skip to ReadMe]

Properties

Versions0.2, 0.4, 0.4.0.2, 0.4.1.0, 0.4.1.1, 0.4.1.2, 0.4.1.3
Change logNone available
Dependenciesbase (<4), bytestring (>=0.9) [details]
LicenseBSD3
Copyright(c) 2006-2007 Duncan Coutts
AuthorDuncan Coutts <duncan@haskell.org>
MaintainerDuncan Coutts <duncan@haskell.org>
Stabilityexperimental
UploadedSun Oct 21 17:39:33 UTC 2007 by DuncanCoutts
UpdatedFri May 29 21:48:01 UTC 2015 by HerbertValerioRiedel to revision 1
DistributionsDebian:0.4.1.3, NixOS:0.4.1.3, Stackage:0.4.1.3
Downloads2934 total (108 in last 30 days)
Votes
0 []
StatusDocs uploaded by user
Build status unknown [no reports yet]

Modules

[Index]

Flags

NameDescriptionDefaultType
bytestring_in_baseEnabledAutomatic

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for iconv-0.4

Codec.Text.IConv
================

This is a Haskell binding to the iconv() C library function.

The only module exported is Codec.Text.IConv, which provides a single
function:

-- | Convert fromCharset toCharset input output
convert :: String -> String -> Lazy.ByteString -> Lazy.ByteString

where fromCharset and toCharset are the names of the input and output
character set encodings, and input and output are the input and output text
as lazy ByteStrings.

An example program to convert the encoding of an input file, similar to the
iconv program, is given in examples/hiconv.hs

Character set encodings
-----------------------

To see a list of encoding names which are known by your operating system,
run "iconv --list" in a shell. Likely encodings are listed on the libiconv
web page:

  http://www.gnu.org/software/libiconv/

Availability of iconv()
-----------------------

The iconv(3) function conforms to POSIX.1-2001. It is provided by the GNU C
library:

  http://www.gnu.org/software/libc/manual/html_node/Character-Set-Handling.html

On systems which do not have a native iconv() implementation you may need to
install libiconv:

  http://www.gnu.org/software/libiconv/