-
Notifications
You must be signed in to change notification settings - Fork 75
UnicodeSupport
Judah Jacobson edited this page Mar 6, 2016
·
1 revision
As of version 0.6, Haskeline supports a wide range of encodings.
If Haskeline doesn't appear to work correctly on your system, please file a bug.
On POSIX systems, Haskeline uses the system iconv
library to encode/decode from the console locale.
Encodings which use more than one byte to encode the characters '\n'
and '?'
, such as UTF-16 or UTF-32, are not supported. However, that restriction should not be an issue in practice, since it allows a variety of encodings including:
- UTF-8
- ISO-8859
- Shift JIS
- EUC
- KOI8
On Windows, Haskeline uses the Win32 Unicode APIs when possible; otherwise, it encodes/decodes using the console's code page.