Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, August 15, 2013 8:53 AM
When i run PS scrip fo lastDateTime user logon i get list of user that in english and part of them in hebrew.
all the users that in hebrew i get gibberish. how i fix that it display HEBREW
All replies (3)
Thursday, August 15, 2013 12:51 PM âś…Answered | 1 vote
Hi,
Maybe this will help:
http://www.silentcrash.com/2012/05/how-to-add-hebrew-to-powershell-or-command-cmd-console/
Thursday, August 15, 2013 11:55 AM
In the ISE, it probably already works fine. At the console, you'll probably need to change your code page to something that supports the Hebrew characters. Based on a quick web search, code page 1255 might work. Try this, at any point before you call the command that needs to display Hebrew characters.
[Console]::OutputEncoding = [Text.Encoding]::GetEncoding(1255)
Thursday, August 15, 2013 1:00 PM
Ah, good call. Hadn't considered that the raster fonts might not support those characters, even if a working code page is selected.