uconv: String encoding conversion with ICU

[ bsd3, codec, library ] [ Propose Tags ] [ Report a vulnerability ]

Provides an interface to ICU's uconv library function for string encoding conversion.


[Skip to Readme]

Modules

[Index]

Flags

Automatic Flags
NameDescriptionDefault
bytestring_in_baseEnabled

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

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.0.1, 0.0.2, 0.0.3
Dependencies base, bytestring (>=0.9) [details]
License BSD-3-Clause
Copyright 2008 Audrey Tang
Author Audrey Tang <audreyt@audreyt.org>
Maintainer Audrey Tang <audreyt@audreyt.org>
Category Codec
Uploaded by AudreyTang at 2008-07-03T04:59:05Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2836 total (4 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for uconv-0.0.3

[back to package description]
Codec.Text.UConv
================

This is a Haskell binding to the uconv() ICU library function.

The only module exported is Codec.Text.UConv, which provides one function:

  -- | Convert fromCharset toCharset input output
  convert :: (UConvertible a, UConvertible b, Monad m)
      => String -> String -> a -> m b

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.

Valid UConvertible instances include Strings, ByteStrings and Lazy ByteStrings.

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

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

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

  http://demo.icu-project.org/icu-bin/convexp

Availability of uconv()
-----------------------

The uconv(3) function is provided by IBM's ICU project:

  http://icu-project.org/

You'd need to install ICU first before compiling this library.