Quantcast
Viewing all articles
Browse latest Browse all 21975

UTF8 Encoding Not working

Hi,

I am facing a problem and i couldn't find any solution online

I am using Quest Active Roles Management Shell and having problem with Encoding. In My Dev, I am getting the correct data with properly encoded. But when i try the same code in my Production environment, i am not getting it right

script follows,

get-content c:\input.txt | Get-QADUser -sizelimit 0 | Select Name, SAMAccountName, Department | Export-CSV C:\output.csv -Encoding UTF8

Desired Output with encoding will have Portugese charectors like ÃÁÍÇÕÓÔÚÜÀÁ. In dev, it is fine, In Prod , it shows like ����������

I don't see much difference between my Dev and Prod Environment, But the output file in Dev has Type as "System.Management.Automation.PSObject" where as in production as "Selected.Quest.ActiveRoles.ArsPowerShellSnapIn.Data.ArsUserObject"

It's a Windows 2008 server in both Dev and Prod

I don't know what to check..Please help

Thanks
Francis


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>