Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > PowerShell

Export-csv and non-English letters

Update your Vista Drivers Update Your Drivers Now!!
Closed Thread
 
Thread Tools Display Modes
Old 07-09-2007   #1 (permalink)
jering
Guest


 

Export-csv and non-English letters

Hi!

I`m using Quest`s PowerShell commands for Active Directory
(http://www.quest.com/activeroles-server/arms.aspx).

I`ve exported users in an OU to import them in another domain using;
Get-QADUser -SearchRoot 'Domain.local\myOU'| select
name,samaccountname,userprincipalname,parentcontainer | Expor
t-Csv c:\export\users.csv

But some of the users have some of the three Norwegian letters in them; ÆØÅ
These displays fine in the PowerShell-output, but in the csv-file thet shows
up as ???.

Any suggestions to make them "survive" export-csv?

My System SpecsSystem Spec
Old 07-09-2007   #2 (permalink)
klumsy@xtra.co.nz
Guest


 

Re: Export-csv and non-English letters

export-csv has an -Encoding parameter that takes any standard dotnet
encoding, so you could use a localized or unicode encoding in this
case.



My System SpecsSystem Spec
Old 07-09-2007   #3 (permalink)
jering
Guest


 

Re: Export-csv and non-English letters

Thank you very much!
Unicode encoding fixed it.

--jering--

"klumsy@xtra.co.nz" wrote:

> export-csv has an -Encoding parameter that takes any standard dotnet
> encoding, so you could use a localized or unicode encoding in this
> case.
>
>
>
>

My System SpecsSystem Spec
Closed Thread

Thread Tools
Display Modes



Similar Threads
Thread Thread Starter Forum Replies Last Post
using export-csv to export to multiple CSV files Srinivas PowerShell 4 05-23-2008 02:46 PM
Vista non-English upgrade to Vista English SoxFan46 Vista installation & setup 2 01-31-2008 04:45 PM
Drive letters Michael Cecil Vista General 0 09-04-2006 02:39 AM
US English XBOX 360 + US English Vista Beta 2 = Broken Media Cente killr0y Vista General 0 06-12-2006 03:56 AM
Export-CliXml/Export-Csv: Change to Export-Object? Alex K. Angelopoulos [MVP] PowerShell 3 06-04-2006 07:57 PM


Vistax64.com is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media 2005-2008

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51