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

fix: update encoding output of install.ps1 #150

Merged
merged 1 commit into from
Sep 15, 2024
Merged

fix: update encoding output of install.ps1 #150

merged 1 commit into from
Sep 15, 2024

Conversation

RalXYZ
Copy link
Collaborator

@RalXYZ RalXYZ commented Aug 25, 2024

See comments in #144
cc @soryu-ryouji

@RalXYZ
Copy link
Collaborator Author

RalXYZ commented Sep 13, 2024

Still working on this, will test on more devices tomorrow

@RalXYZ
Copy link
Collaborator Author

RalXYZ commented Sep 14, 2024

Tested, works properly on:

  • Windows 7 ~ 11 Chinese ANSI mode
  • Windows 10 ~ 11 Unicode mode

Does not work on:

  • Windows 7 ~ 11 non-Chinese ANSI mode

At least we successfully support Unicode mode, without making anything worse
cc @soryu-ryouji

@RalXYZ RalXYZ marked this pull request as ready for review September 14, 2024 16:54
@RalXYZ
Copy link
Collaborator Author

RalXYZ commented Sep 14, 2024

I tried to force Windows Powershell to print in Unicode mode:

[Console]::OutputEncoding = [System.Text.Encoding]::UTF8

This works fine on Windows 11 ANSI mode, but crashes on Windows 7 ANSI mode

@RalXYZ RalXYZ added the 🐞 bug fix PR: bug fix label Sep 14, 2024
@RalXYZ RalXYZ merged commit 9323e0f into main Sep 15, 2024
2 checks passed
@RalXYZ RalXYZ deleted the dev/fix-encoding branch September 15, 2024 06:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug fix PR: bug fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants