encoding-0.3: A library for various character encodings

System.IO.Encoding

Synopsis

Documentation

getSystemEncoding :: IO DynEncodingSource

Returns the encoding used on the current system.

hPutStr :: Encoding e => e -> Handle -> String -> IO ()Source

Like the normal System.IO.hPutStr, but encodes the output using an encoding.

hGetContents :: Encoding e => e -> Handle -> IO StringSource

Like the normal System.IO.hGetContents, but decodes the input using an encoding.