unicode-show
unicode-show copied to clipboard
Suggestion:For the documents,add solution suggest for errors due to `localeEncoding`
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