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 fix] Adding Encoding option in Export-Csv. #17

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

[Bug fix] Adding Encoding option in Export-Csv. #17

wants to merge 1 commit into from

Conversation

shutingrz
Copy link

In Japan, multi-byte characters are used.
However, Export-CSV cmdlet uses ASCII when there is no Encoding option.
Therefore, csv and xlsx output are garbled in countries that use multibyte characters.

Below is the description of Builtin Administrator in Japanese environment.

(snip),"S-1-5-21-1977510153-2366180416-4085323045-500","","???????/???????? (????? ?????)",(snip)

To solve the problem, use Default for the Encoding option of Export-Csv.
By using Default, it is possible to output with character code suitable for the environment.

As a result, it is output normally as follows.

(snip),"S-1-5-21-1977510153-2366180416-4085323045-500","","コンピューター/ドメインの管理用 (ビルトイン アカウント)"

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