Home
last modified time | relevance | path

Searched refs:backslashreplace (Results 1 – 25 of 29) sorted by relevance

12

/aosp_15_r20/external/python/cpython3/Doc/howto/
Dunicode.rst232 character out of the Unicode result), or ``'backslashreplace'`` (inserts a
243 >>> b'\x80abc'.decode("utf-8", "backslashreplace")
277 ``backslashreplace`` (inserts a ``\uNNNN`` escape sequence) and
296 >>> u.encode('ascii', 'backslashreplace')
/aosp_15_r20/external/python/cpython2/Doc/library/
Dcodecs.rst105 * ``'backslashreplace'``: replace with backslashed escape sequences (for
234 Implements the ``backslashreplace`` error handling (for encoding only): the
368 | ``'backslashreplace'`` | Replace with backslashed escape sequences |
467 * ``'backslashreplace'`` Replace with backslashed escape sequences.
578 * ``'backslashreplace'`` Replace with backslashed escape sequences.
Dio.rst140 ``'backslashreplace'`` (replace with backslashed escape sequences) can be
787 reference) or ``'backslashreplace'`` (replace with backslashed escape
Dstdtypes.rst925 ``'ignore'``, ``'replace'``, ``'xmlcharrefreplace'``, ``'backslashreplace'`` and
933 Support for ``'xmlcharrefreplace'`` and ``'backslashreplace'`` and other error
/aosp_15_r20/external/python/cpython3/Doc/library/
Dfaulthandler.rst28 * Only ASCII is supported. The ``backslashreplace`` error handler is used on
Dcodecs.rst307 >>> 'German ß, ♬'.encode(encoding='ascii', errors='backslashreplace')
316 pair: backslashreplace; error handler's name
346 | ``'backslashreplace'`` | Replace with backslashed escape sequences. |
411 The ``'backslashreplace'`` error handler now works with decoding and
477 Implements the ``'backslashreplace'`` error handling.
Dsys.rst287 ``sys.stdout.encoding`` with ``'backslashreplace'`` error handler.
304 bytes = text.encode(sys.stdout.encoding, 'backslashreplace')
314 Use ``'backslashreplace'`` error handler on :exc:`UnicodeEncodeError`.
Dio.rst963 ``'backslashreplace'`` causes malformed data to be replaced by a
Dlogging.rst1330 | | specified, the value 'backslashreplace' is |
Dfunctions.rst1275 * ``'backslashreplace'`` replaces malformed data by Python's backslashed
Dstdtypes.rst1635 ``'replace'``, ``'xmlcharrefreplace'``, ``'backslashreplace'`` and any
3631 | | ``repr(obj).encode('ascii', 'backslashreplace')``). | |
/aosp_15_r20/external/python/cpython2/Misc/NEWS.d/
D2.7a4.rst155 Fix doctest to handle encode error with "backslashreplace".
D2.7b2.rst169 backslashreplace error handler if ``str(value)`` failed.
D2.7.9rc1.rst29 Fixed integer overflow issues in "backslashreplace" and "xmlcharrefreplace"
/aosp_15_r20/external/python/cpython3/Objects/stringlib/
Dcodecs.h352 p = backslashreplace(writer, p, in STRINGLIB()
/aosp_15_r20/external/python/cpython3/Doc/using/
Dcmdline.rst776 ``'backslashreplace'``.
980 :data:`sys.stdout` (:data:`sys.stderr` continues to use ``backslashreplace``
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_codecs.py430 backslashreplace = ''.join('\\x%02x' % b
433 before + backslashreplace + after)
/aosp_15_r20/external/python/cpython3/Misc/NEWS.d/
D3.5.1rc1.rst173 startup) now uses the backslashreplace error handler.
D3.5.0a1.rst88 The "backslashreplace" error handlers now works with decoding and
244 Fixed integer overflow issues in "backslashreplace", "xmlcharrefreplace",
/aosp_15_r20/external/python/cpython3/Doc/whatsnew/
D3.5.rst382 ``repr(obj).encode('ascii', 'backslashreplace')``)::
705 * Added the ``"namereplace"`` error handlers. The ``"backslashreplace"``
D2.3.rst639 "backslashreplace" uses Python backslash quoting to represent unencodable
/aosp_15_r20/external/python/cpython3/Doc/c-api/
Dinit_config.rst1121 ``"backslashreplace"`` error handler).
Dinit.rst342 Note that :data:`sys.stderr` always uses the "backslashreplace" error
/aosp_15_r20/external/python/cpython3/Objects/
Dunicodeobject.c712 backslashreplace(_PyBytesWriter *writer, char *str, in backslashreplace() function
7124 str = backslashreplace(&writer, str, in unicode_encode_ucs1()
/aosp_15_r20/external/python/cpython2/Doc/whatsnew/
D2.3.rst639 "backslashreplace" uses Python backslash quoting to represent unencodable

12