Error exporting to Excel / CSV in 4.1.1 [UTF-8] #31246
-
Dear community, I have upgraded from 3.0.0 to
How to fix that? It worked well before upgrading. What I've learned is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I found a similar discussion that might be relevant to your issue. In a previous case, a user encountered an error when saving a dashboard with specific charts due to encoding issues. The problem was traced back to the Superset backend database using 'latin-1' encoding. Switching the database encoding to 'utf-8' resolved the issue [1]. For your specific problem, it seems that the error is related to the 'latin-1' encoding being used for HTTP headers, which cannot handle UTF-8 characters. You might want to check if there is a configuration option in your server setup to change the encoding for HTTP headers to 'utf-8'. Additionally, ensure that your Superset configuration for CSV exports is set to use UTF-8 encoding: CSV_EXPORT = {"encoding": "utf-8"} This setting ensures that exported files use UTF-8 encoding, which should help in handling UTF-8 symbols correctly. If the issue persists, you may need to look into your server's configuration to ensure it supports UTF-8 encoding for HTTP headers. |
Beta Was this translation helpful? Give feedback.
To fix it I had to update the file from the error message:
/usr/lib64/python3.9/http/server.py
at line 514 change:
to
in other words, change
latin-1
toutf-8
.Problem solved, export to Excel or CSV works.