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

[char]0xFFFF breaking export #1645

Open
nlangsto opened this issue Oct 10, 2024 · 2 comments
Open

[char]0xFFFF breaking export #1645

nlangsto opened this issue Oct 10, 2024 · 2 comments

Comments

@nlangsto
Copy link

Hello

I had this issue:

image

Turns out I had to remove the unicode character so that exporting the excel would work

$alldata | % {$.Status = -join ($.Status.ToCharArray() | Where-Object { $_ -ne [char]0xFFFF })}

Thanks
Neil

@nlangsto
Copy link
Author

Here is the data, funny, it also breaks
| Export-Clixml
&
| ConvertTo-Json -depth 10 | Out-File
too
corruptdatafile.zip

so the attached is an
| Out-File

@dfinke
Copy link
Owner

dfinke commented Oct 12, 2024

Thanks for the info @nlangsto and using ImportExcel.

I was wondering if it caused issues elsewhere.

Not sure of a general solutin off the top of my head.

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

3 participants
@dfinke @nlangsto and others