Quantcast
Channel: PowerShell.org » All Posts
Viewing all articles
Browse latest Browse all 13067

Export-csv changing names with apostrophes

$
0
0

Good afternoon,

We have 2 servers that we use for production and development.

When I run the exact same script in the “dev” box the export-csv leaves the users name with apostrophes alone.
The “Production” box changes the names with an apostrophe with an “?”

We are using the following:

$MyTable.rows | Export-Csv -Path $FileName -NoTypeInformation

Examples:

In Dev the user is Bryan O’Holmstrom and the export csv file has it as the same
In Production the user is Bryan O’Holmstrom and the export csv file has it as ‘Bryan O?Holmstrom

Thanks in advance,


Viewing all articles
Browse latest Browse all 13067

Trending Articles