Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
WendaoLee opened this issue Dec 10, 2023 · 0 comments

Comments

@WendaoLee
Copy link

WendaoLee commented Dec 10, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant