Win32-2.5.4.1: A binding to part of the Win32 library

Copyright2012 shelarcy
LicenseBSD-style
Maintainershelarcy@gmail.com
StabilityProvisional
PortabilityNon-portable (Win32 API)
Safe HaskellNone
LanguageHaskell98

System.Win32.Encoding (signature[?])

Description

Enocode/Decode mutibyte charactor using Win32 API.

Synopsis

Documentation

encodeMultiByte :: CodePage -> String -> String Source #

The System.IO output functions (e.g. putStr) don't automatically convert to multibyte string on Windows, so this function is provided to make the conversion from a Unicode string in the given code page to a proper multibyte string. To get the code page for the console, use getCurrentCodePage.

decodeMultiByte :: CodePage -> String -> String Source #

The System.IO input functions (e.g. getLine) don't automatically convert to Unicode, so this function is provided to make the conversion from a multibyte string in the given code page to a proper Unicode string. To get the code page for the console, use getCurrentCodePage.

decodeMultiByteIO :: CodePage -> String -> IO String Source #

Because of stringToUnicode is unclear name, we use decodeMultiByteIO for alias of stringToUnicode.