ImportExcel icon indicating copy to clipboard operation
ImportExcel copied to clipboard

[char]0xFFFF breaking export

Open nlangsto opened this issue 2 years ago • 4 comments

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 avatar Oct 10 '24 08:10 nlangsto

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

nlangsto avatar Oct 10 '24 08:10 nlangsto

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.

dfinke avatar Oct 12 '24 01:10 dfinke

maybe this solution will solve your problem click

YeharaDananjaya avatar Oct 28 '24 15:10 YeharaDananjaya

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Apr 26 '25 04:04 stale[bot]