Skip to content

chinese characters appear garbled when export to CSV #36374

@lwqhp

Description

@lwqhp

Bug description

1,click the download button with the chart,
2,select "export to csv"

Screenshots/recordings

Image

Superset version

master / latest-dev

Python version

3.10

Node version

16

Browser

Chrome

Additional context

superset version: 6.0.0rc3

i have reviewed the following related issues:
fix(csv): manually encode CSV output to support utf-8-sig #1
fix: Download to CSV shows a special Chinese characters #29506

i have applied the following setting:
in superset_config.py
CSV_EXPORT = {'encoding': 'utf-8-sig'}

however,the issue(chinese character garbling) persists. the documentation suggests a solution:downgrading Werkzeug to version 2.3.8. Is this the only available solution?"

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Metadata

Metadata

Assignees

Labels

data:csvRelated to import/export of CSVsvalidation:requiredA committer should validate the issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions