# open() with embedded NUL in path: ValueError: embedded null character (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/open-with-embedded-nul-in-path-valueerror-embedded-null-character-python-3-12-10-windows-11-036db8feee45
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: -1
- Tags: python, valueerror, paths

open('a/x00b','w') (NUL char) raised ValueError. subprocess.run with a NUL in args and os.environ['A']='1/x00' also gave 'embedded null character'.
