unicode-show icon indicating copy to clipboard operation
unicode-show copied to clipboard

Suggestion:For the documents,add solution suggest for errors due to `localeEncoding`

Open WendaoLee opened this issue 1 year ago • 0 comments

Due to the terminal's localeEncoding,it may occurs error like:

ghci> uprint "🥰"
"*** Exception: <stdout>: hPutChar: invalid argument (invalid character)

For this,the solution is set localeEncoding to utf-8,refering to System.IO.

It would be better to add these annotation in the document.

I'd like to offer a PR in the later.


Related Post:https://discourse.haskell.org/t/solved-what-the-range-of-characters-that-putstrln-support/8305?u=wendaolee

WendaoLee avatar Dec 10 '23 05:12 WendaoLee