microsoft / CSS-Exchange

Exchange Server support tools and scripts
MIT License
1.21k stars 333 forks source link

[Issue] - Health Checker failed on Chinese Traditional OS #2027

Closed MashiZhou closed 2 months ago

MashiZhou commented 4 months ago

Provide Version Number 24.02.15.1640

Describe the issue HealthChecker would fail after analyzing data. But if I use version 23.11.01.2049, it worked properly.

MashiZhou commented 4 months ago

I had tried that it works on English version OS, but failed on Chinese version OS. Is encoding problem?

version Number 24.03.12.1700

dpaulson45 commented 2 months ago

@MashiZhou I was able to reproduce this on a Chinese Traditional OS language. I am assuming that is the OS version that you have as well? Chinese Simplified didn't cause the problem from lab testing.

Will start to work on a fix for this.

dpaulson45 commented 2 months ago

It looks like this fix should be easy. It appears to be an issue with the reading of the file without providing the encoding option. If we provide -Encoding UTF8 with Get-Content we don't see the issue.

image

image

Just going through some testing to make sure older versions of Windows don't have a problem with this change, don't think it would.