Skip to content

Commit 2bcd313

Browse files
authored
DOC: Document how encoding errors are handled (#39492)
1 parent 3ff5192 commit 2bcd313

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pandas/io/parsers/readers.py

+5
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@
270270
Encoding to use for UTF when reading/writing (ex. 'utf-8'). `List of Python
271271
standard encodings
272272
<https://docs.python.org/3/library/codecs.html#standard-encodings>`_ .
273+
.. versionchanged:: 1.2
274+
275+
When ``encoding`` is ``None``, ``errors="replace"`` is passed to
276+
``open()``. Otherwise, ``errors="strict"`` is passed to ``open()``.
277+
This behavior was previously only the case for ``engine="python"``.
273278
dialect : str or csv.Dialect, optional
274279
If provided, this parameter will override values (default or not) for the
275280
following parameters: `delimiter`, `doublequote`, `escapechar`,

0 commit comments

Comments
 (0)