/Haskell 8


Copyright (c) The University of Glasgow 2008-2009
License see libraries/base/LICENSE
Maintainer [email protected]
Stability internal
Portability non-portable
Safe Haskell Trustworthy
Language Haskell2010


This module provides text encoding/decoding using iconv

iconvEncoding :: String -> IO (Maybe TextEncoding) Source

mkIconvEncoding :: CodingFailureMode -> String -> IO (Maybe TextEncoding) Source

Construct an iconv-based TextEncoding for the given character set and CodingFailureMode.

As iconv is missing in some minimal environments (e.g. #10298), this checks to ensure that iconv is working properly before returning the encoding, returning Nothing if not.

localeEncodingName :: String Source

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).