Comments (10)
Hey @TommyLeung-gj! I'm here to help you with the issue you're experiencing with Superset 4.0.1. I'm a bot that can assist you with bug fixes, answer your questions, and guide you on becoming a contributor. Let's dive into resolving the problem together!
To resolve the issue of Chinese characters and numbers being garbled when exporting query results to a CSV file in Superset 4.0.1, you need to ensure that the CSV file is encoded in UTF-8. The df_to_escaped_csv
function in the superset/utils/csv.py
file should be called with the appropriate encoding settings.
Here is the relevant part of the code with the necessary modification:
csv_data = df_to_escaped_csv(df, index=False, encoding='utf-8', **config["CSV_EXPORT"])
Ensure that the encoding='utf-8'
parameter is included in the call to df_to_escaped_csv
. This will help in correctly encoding Chinese characters and numbers in the exported CSV file [1][2].
To continue talking to Dosu, mention @dosu.
from superset.
The issue has been resolved by downgrading the package with the following command: pip install Werkzeug==2.3.8
.
from superset.
The issue has been resolved by downgrading the package with the following command:
pip install Werkzeug==2.3.8
.I down grade the Werkzeug as 2.3.8 but no luck. What's your encoding option?
My is followingCSV_EXPORT = {"encoding": "utf-8-sig"}
Yes, this encoding. But did you face the same problem with
VERSION 2.1.3
or3.1.3
? Also I got a Chinese characters not with the English.
It's worked after i reload the cerely service. Thanks a lot bro.
from superset.
Related issue linked above ^^^
Might even be considered a duplicate, really, but they seem kind of unique.
from superset.
No ,It still doesn't work after I changed encoding = "utf-8"
from superset.
maybe there is something wrong in the process of async query , the celery or redis resultbackend cache
from superset.
+1
from superset.
+2
Having the same issue with VERSION 4.0.1
even VERSION 2.1.3
WORKING FINE WITH THESE PARAMETER CONFIG.
from superset.
The issue has been resolved by downgrading the package with the following command:
pip install Werkzeug==2.3.8
.
I down grade the Werkzeug as 2.3.8 but no luck.
What's your encoding option?
My is following
CSV_EXPORT = {"encoding": "utf-8-sig"}
from superset.
The issue has been resolved by downgrading the package with the following command:
pip install Werkzeug==2.3.8
.I down grade the Werkzeug as 2.3.8 but no luck. What's your encoding option?
My is following
CSV_EXPORT = {"encoding": "utf-8-sig"}
Yes, this encoding. But did you face the same problem with VERSION 2.1.3
or 3.1.3
? Also I got a Chinese characters not with the English.
from superset.
Related Issues (20)
- /lib64/libstdc++.so.6: cannot allocate memory in static TLS block HOT 1
- WARNING 'werkzeug.local.LocalProxy' is not mapped HOT 1
- Horizontal bar chart legend padding & sort order regression in 4.0.2rc2 HOT 3
- Exception: Unable to execute 'ecpg', you likely need to install it.' HOT 2
- The row limit set for the chart was reached. HOT 13
- Download to CSV shows a special characters in Arabic HOT 7
- ChartWarmUpCacheCommand still use legacy filter scopes HOT 3
- Superset API import dataset without SSH Tunnel not working ? HOT 1
- Unable to detect valid SELECT statement
- UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd4 in position 6: invalid continuation byte HOT 8
- Tags on content do not get displayed in consistent order HOT 2
- Webpack build runs regardless of BUILD_SUPERSET_FRONTEND_IN_DOCKER cited in docker compose documentation HOT 2
- SQL with inline comment starting with `--` fails in dashboards `view query` and sqllab HOT 3
- Sequential color scheme for skewed data
- DATA URIs are stripped from href attribute HOT 2
- Stop button for queries doesn't work in SQL Lab HOT 1
- SQL Lab - Save button doesn't change its size based on label length HOT 1
- Chart Editor - Impossible to translate Time Grain dropdown contents HOT 1
- Chart Editor (Radar Chart) - Impossible to translate Label Position dropdown contents HOT 1
- Slack Notification - deprecated API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from superset.