header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
how to deal with special chars
Last Post 13 Aug 2010 06:22 AM by Shay Levy. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
destnUser is Offline
New Member
New Member
Posts:15
Avatar

--
13 Aug 2010 05:43 AM
    If I query Active Directory for al users to be exported to a csv file and some of these users have names with special characters like é è à ç ô

    Than the values in my csv contain a question mark.

    For example, the user Jérôme becomes J?r?me in my csv file.


    How can I avoid this or deal with this?
    Shay LevyUser is Offline
    PowerShell MVP, Admin
    Veteran Member
    Veteran Member
    Posts:1362
    Avatar

    --
    13 Aug 2010 06:22 AM
    By default Export-Csv create ASCII files, you can use the Encoding parameter with a value of 'Unicode'.

    Shay Levy
    Windows PowerShell MVP
    http://PowerShay.com
    PowerShell Community Toolbar
    Twitter: @ShayLevy
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer