This is an automated email from the ASF dual-hosted git repository.

jscheffl pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 045813df34d Switch from surrogateescape to replace to handle utf-8 
error (#62632)
045813df34d is described below

commit 045813df34dcdce6857493e5892cb67cc427202f
Author: AutomationDev85 <[email protected]>
AuthorDate: Sun Mar 1 18:35:51 2026 +0100

    Switch from surrogateescape to replace to handle utf-8 error (#62632)
    
    Co-authored-by: AutomationDev85 <AutomationDev85>
---
 providers/docker/src/airflow/providers/docker/operators/docker.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/providers/docker/src/airflow/providers/docker/operators/docker.py 
b/providers/docker/src/airflow/providers/docker/operators/docker.py
index f2d67a6189e..345a6c624f1 100644
--- a/providers/docker/src/airflow/providers/docker/operators/docker.py
+++ b/providers/docker/src/airflow/providers/docker/operators/docker.py
@@ -53,7 +53,7 @@ def stringify(line: str | bytes):
     """Make sure string is returned even if bytes are passed. Docker stream 
can return bytes."""
     decode_method = getattr(line, "decode", None)
     if decode_method:
-        return decode_method(encoding="utf-8", errors="surrogateescape")
+        return decode_method(encoding="utf-8", errors="replace")
     return line
 
 

Reply via email to