| Copyright | (C) 2016 Ryan Scott |
|---|---|
| License | BSD-style (see the file LICENSE) |
| Maintainer | Ryan Scott |
| Stability | Provisional |
| Portability | Portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
System.Win32.CodePage
Contents
Description
On Windows, this exports functions for getting, setting, and analyzing code pages. On other operating systems, this exports nothing.
- type CodePage = UINT
- getConsoleCP :: IO UINT
- getConsoleOutputCP :: IO UINT
- setConsoleCP :: UINT -> IO ()
- setConsoleOutputCP :: UINT -> IO ()
- getACP :: IO CodePage
- getOEMCP :: CodePage
- codePageEncoding :: Word32 -> TextEncoding
- mkCodePageEncoding :: CodingFailureMode -> Word32 -> TextEncoding
- isValidCodePage :: CodePage -> IO Bool
- installedCodePages :: IO [CodePage]
- supportedCodePages :: IO [CodePage]
- stringToUnicode :: CodePage -> String -> IO String
The CodePage type
Getting and setting code pages
getConsoleCP :: IO UINT #
setConsoleCP :: UINT -> IO () #
setConsoleOutputCP :: UINT -> IO () #
Code page encodings
codePageEncoding :: Word32 -> TextEncoding #
Valid code pages
isValidCodePage :: CodePage -> IO Bool #
installedCodePages :: IO [CodePage] Source #
Enumerates all installed code pages in sorted order.
supportedCodePages :: IO [CodePage] Source #
Enumerates all supported code pages in sorted order.