[Haskell-cafe] How to input Unicode string in Haskell program?

Albert Y. C. Lai trebla at vex.net
Fri Feb 22 21:15:08 CET 2013


On 13-02-21 04:58 AM, Semyon Kholodnov wrote:
> — Windows console is locked to one specific local code page, and no
> codepage contains Latin-1, Cyrillic and Kanji symbols at the same
> time.

Windows console is not locked to an anti-international code page; it is 
only defaulted to.

Use CHCP 65001 to switch to the UTF-8 code page.

Unfortunately, code page and encoding is only half of the battle; the 
other half is fonts. Most Windows fonts are incomplete; all Windows 
fixed-width fonts are incomplete. (Silver lining: Arial Unicode is 
sufficiently complete.) Therefore, you may be unable to display some 
characters, but they are the correct characters.




More information about the Haskell-Cafe mailing list