GHC.IO.Encoding.Iconv

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

Description

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).
https://downloads.haskell.org/~ghc/8.10.2/docs/html/libraries/base-4.14.1.0/GHC-IO-Encoding-Iconv.html