microhuang opened a new pull request #21053:
URL: https://github.com/apache/airflow/pull/21053


   When the task outputs some strange characters, decoding will lead to 
"Unicode decodeerror" error due to inconsistent encoding. We can try-catch it 
or ignore it by specifying the parameter: errors="backslashreplace" .
   
   e.g.
   
   ```
               line = ''
               for raw_line in iter(self.sub_process.stdout.readline, b''):
                   try:
                       line = raw_line.decode(output_encoding).rstrip()
                   except UnicodeDecodeError as err:
                       print(err, output_encoding, raw_line)
                   self.log.info("%s", line)
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to