Run-time exception when attempting to print a Unicode character

后端 未结 2 495
执念已碎
执念已碎 2021-02-12 14:51

Char is the type for Unicode characters in Haskell, and String is simply [Char] (i.e. a list of Char items). Here is some sim

2条回答
  •  一个人的身影
    2021-02-12 15:19

    On Windows, the fix is to tell the shell to use code page 65001 (instructions here), which puts Windows in "UTF-8 mode". It's not perfect, but for most characters you should see unicode characters handled much better.

提交回复
热议问题