2 lines
No EOL
199 B
PowerShell
2 lines
No EOL
199 B
PowerShell
# Converts a string to a UTF16-encoded byte array. This looks like ASCII characters separated by 0x00 in most cases.
|
|
$bytes = ConvertTo-StringBytes -Input "Hello World!" -Utf16 $true -MaxLength 12 |