PowerTip: Use PowerShell to Display ASCII Characters


Summary: Use Windows PowerShell to display ASCII characters.

Hey, Scripting Guy! Question How can I use Windows PowerShell to quickly display printable ASCII characters when I am not connected
           to the Internet?

Hey, Scripting Guy! Answer Use the range operator to create a range of numbers 1 through 128, pipe it to Foreach-Object (% is the alias),
           and display the current object and the [char] value on the pipeline, for example:

1..128 | %{"$_ $([char]$_)"}

Comments (0)

Skip to main content