diff --git a/clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java b/clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java index 5cdc5e3ae97..05d1dc6b4c6 100644 --- a/clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java +++ b/clients/cli/src/main/java/org/apache/gravitino/cli/outputs/TableFormat.java @@ -162,7 +162,7 @@ public String getTableFormat(Column... columns) { throw new RuntimeException(e); } - return baos.toString(); + return new String(baos.toByteArray(), StandardCharsets.UTF_8); } private void checkColumns(Column... columns) {