Someone asked about a deployment that failed using django-simple-deploy. The root cause was that their requirements.txt file had a UTF-16 encoding.

I'm currently parsing requirements.txt (when present) with path.read_text(), with no args. I could catch the UnicodeDecodeException, but is that worth supporting?

Is a UTF-16 encoded requirements file just going to cause problems for them down the road? I've never run into this before, and have no idea how common it is.

0

If you have a fediverse account, you can quote this note from your own instance. Search https://fosstodon.org/users/ehmatthes/statuses/114434293471404798 on your instance and quote it. (Note that quoting is not supported in Mastodon.)