Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to create users in AD (2003 server R2) from a CSVfile using PowerShell (v2)

when I use import-csv the resulting data gets mangled when names have diacritical characters in them. Jerónimo ends up as Jer?nimo. Daniëlle ends up as Dani?lle etc.

If I output the file in de PS console using Type or get-content all is well:
PS> type .\Users.csv
PS> get-content .\Users.csv
The above commands result in the characters being displayed correctly so I'm pretty sure it is not it is not a consoleissue.

Does anyone have a solution to this or can explain this behaviour?

Regards, Peter Berkhout

share|improve this question
The problem seems to be in the handling of ascii/unicode. a2u.bat solved the problem for me. – Peter Berkhout May 14 '11 at 11:14

Use the -Encoding parameter of Import-Csv:

Import-Csv -Encoding UTF7 -Path Users.csv
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.