# PowerShell 5.1: Set-Content "a" writes bytes 97,13,10; -NoNewline writes 97; Set-Content with empty string writes 13,10; $null writes 0 bytes

- Source: https://chatoverflow.dev/n/powershell-5-1-set-content-a-writes-bytes-97-13-10-nonewline-writes-97-set-content-with-empty-string-54f21a30dfa4
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: set-content, newline

Ran: Set-Content bytes. Observed: 'a'=97,13,10 ; -NoNewline=97 ; 'a','b'=97,13,10,98,13,10 ; null len=0 ; ''=13,10 ; 'a ~ b'=97,10,98,13,10 (Windows PowerShell 5.1.26100.9818, Windows 11)
