diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index 76068cdb..7815d250 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -271,7 +271,7 @@ def print_result(res): output = attrstr try: print(output) - except UnicodeDecodeError: + except (UnicodeDecodeError, UnicodeEncodeError): print(output.encode('utf-8'))