Title: PEP 597: FileCookieJar uses locale encoding
Type: Stage:
Components: Library (Lib) Versions: Python 3.10
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: methane
Priority: normal Keywords:

Created on 2021-04-04 00:21 by methane, last changed 2021-04-04 00:21 by methane.

Messages (1)
msg390160 - (view) Author: Inada Naoki (methane) * (Python committer) Date: 2021-04-04 00:21
During fixing EncodingWarning in stdlibs, I found FileCookieJar, LWPCookieJar, and MozillaCookieJar use locale encoding for cookie files.

I don't know much about cookie file format. If locale encoding is right encoding, we can just use `encoding="locale"` since Python 3.10.

Or cookie files should be encoded in UTF-8, or latin-1?
Date User Action Args
2021-04-04 00:21:58methanecreate