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

Bug: printing UTF-8 characters during gleam run on Windows #1817

Closed
arothuis opened this issue Oct 30, 2022 · 1 comment
Closed

Bug: printing UTF-8 characters during gleam run on Windows #1817

arothuis opened this issue Oct 30, 2022 · 1 comment

Comments

@arothuis
Copy link

io.print("ç") prints ├º in my Terminal on Windows.
This might need some further investigation, but with some help from @inoas, I already tried the following:

  • io.print("ç") in a Gleam-file (v0.24) after running gleam run in Windows/Terminal/PowerShell (latest) -> ├º
  • erl in Windows/Terminal/PowerShell (latest): io:put_chars("ç"). -> çok
  • erl in Windows/Terminal/PowerShell (latest), when loading and running gleam_stdlib:print("ç"). -> çnil
@arothuis
Copy link
Author

Although it's strange that this issue occurred during gleam run but not in erl in the same terminal, the issue can be resolved on the user's end.

What did work:
Region Settings > Additional date, time & regional settings > Change date, time, or number formats > Administrative > Change system locale... > Beta: Use UTF-8 for worldwide language support

I have tried resolving the issue by resetting my character encodings in PowerShell, which did not work for me.

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