﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34642	File.open to support different encodings	Tomasz Melcer	Yves Weissig	"Currently the [https://github.com/django/django/blob/main/django/core/files/base.py#L108 File.open] method has only a single parameter `mode`. `mode` can suggest opening a file in text mode. Then, Python's `open` will by default attempt to use the common utf-8 encoding.

It is a common pattern in a code base I work on to use the `utf-8-sig` encoding for CSV files, as this provides a slight improvement to user experience when opening the file in Excel. Right now, to create a file in this encoding using Django's File, we have to open it in a binary mode and explicitly wrap the file handle in a codec. It would be helpful if, just like the base Python's `open` function, `File.open` also accepted an `encoding` parameter, and pass it to the Python's `open` function."	New feature	closed	Core (Other)	dev	Normal	fixed			Ready for checkin	1	0	0	0	1	0
