conduit-iconv-0.1.0.0: Conduit for character encoding conversion.

Safe HaskellNone

Data.Conduit.IConv

Description

A Data.Conduit based on the iconv library for converting a Data.ByteString from one character set encoding to another

Synopsis

Documentation

convertSource

Arguments

:: Monad m 
=> String

Name of input character encoding

-> String

Name of output character encoding

-> Conduit ByteString m ByteString 

Convert text from one named character encoding to another.

Encoding names can be e.g. "UTF-8" or "ISO-8559-1". Appending "//IGNORE" to the output encoding will cause encoding errors to be ignored and the characters to be dropped, "//IGNORE,TRANSLIT" will cause them to be replaced by a replacement character.

Without this encoding errors will cause an exception.

On errors this will call Control.Monad