Skip to content

Instantly share code, notes, and snippets.

@TolgaBagci
Last active December 29, 2023 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TolgaBagci/f971bfed1b16505a7616b7bb99e832a8 to your computer and use it in GitHub Desktop.
Save TolgaBagci/f971bfed1b16505a7616b7bb99e832a8 to your computer and use it in GitHub Desktop.
Finding the ASCII Code of the Text Entered with Powershell in Windows Systems

$text = Read-Host "Enter Text"; $asciiValues = $text -split '' | Where-Object { $_ -ne '' } | ForEach-Object { [int][char]$_ }; Write-Host "ASCII Values: $($asciiValues -join ' ')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment