Custom query SQL download file garbled resolution

更新时间:
复制 MD 格式

If a file downloaded from a custom SQL query contains garbled characters, re-import the file into Excel with UTF-8 encoding to resolve the issue.

1 Problem description

After you click Download in a custom SQL query, the downloaded file displays garbled characters as follows:

image

2 Causes

The downloaded file is a .csv file exported directly by ClickHouse without an encoding declaration. When you open the file, Chinese characters appear garbled because the default encoding does not match the file content. To fix this, manually import the file with UTF-8 encoding.

3 Problem solving

  1. Create a new blank Excel file

  2. Click on "Data-Get External Data-Get From File-Select Downloaded File" image.png

  3. Select the UTF-8 encoding format image.pngas follows

    1. image

load

  1. Save New File