Skip to content

Stop compiler from assuming UTF-8 encoding in strings #27

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

korbosoft
Copy link

@korbosoft korbosoft commented Jun 18, 2025

A while back I had an issue with getting strings with non-ASCII characters in my code to work (I wanted this for better visibility in my code) and realized it was because the compiler was assuming I wanted UTF-8 encoding in my program. Normally this acts perfectly fine, but in my case (where I was using special non-ASCII characters) this lead to mojibake appearing instead of box drawing characters. I felt that adding this flag to the compiler would make it easier to fully use the console. I do see that this might cause similar problems on any library that wants UTF-8 in their strings though.

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

Successfully merging this pull request may close these issues.

1 participant