pipina commented on issue #36682:
URL: https://github.com/apache/superset/issues/36682#issuecomment-3665503569
I do have set it so, but its not working neither for gui downloads nor
for email attached csv. This is what we have set:
LANGUAGES = {
"en": {"flag": "us", "name": "English"},
"es": {"flag": "es", "name": "Spanish"},
"de": {"flag": "de", "name": "German"},
"ru": {"flag": "ru", "name": "Russian"},
"sk": {"flag": "sk", "name": "Slovak"},
}
CSV_EXPORT = {
"encoding": "cp1250",
"sep": ";", "decimal": ","
}
D3_FORMAT = {
"decimal": ",", # - decimal place string (e.g., ".").
"thousands": "", # - group separator string (e.g., ",").
"grouping": [3], # - array of group sizes (e.g., [3]), cycled as
needed.
"currency": ["", "€"] # - currency prefix/suffix strings (e.g., ["$",
""])
}
a
On Wed, 2025-12-17 at 05:39 -0800, dosubot[bot] wrote:
> dosubot[bot]
> left a comment (apache/superset#36682) [1]
> You don't need to open a new bug report—changing the encoding of CSV
> email attachments is supported via configuration. Just set the
> encoding in your CSV_EXPORT config like this:
> CSV_EXPORT = {
> "encoding": "cp1250",
> "sep": ";",
> "decimal": ","
> }
> This setting applies to both GUI CSV downloads and email report
> attachments. If your attachments are still UTF-8 after setting this,
> double-check that the config is loaded by all Superset processes
> (including workers) and restart if needed. Also, make sure your data
> only contains characters representable in cp1250, or you may see
> encoding errors. This approach is confirmed by the code path for both
> exports and email reports, which uses the encoding from CSV_EXPORT
> for CSV generation and attachments (reference [2]).
> To reply, just mention @dosu [3].
>
> How did I do? Good [4] | Irrelevant [5] | Incorrect [6] | Verbose [7]
> | Hallucination [8] | Report 🐛 [9] | Other [10]
>
> —
> Reply to this email directly, view it on GitHub [1], or unsubscribe
> [11].
> You are receiving this because you were mentioned.Message ID:
> ***@***.***>
[1] (apache/superset#36682)
https://github.com/apache/superset/issues/36682#issuecomment-3665404035
[2] reference
https://github.com/apache/superset/blob/829e4d92d91ceae4b43b1ed3b063ffe45377799c/superset/charts/data/api.py#L346-L412
[3] @dosu https://go.dosu.dev/dosubot
[4] Good
https://app.dosu.dev/response-feedback/58b279c8-11e1-410d-b49f-b651b1b951b4?feedback_type=great_response
[5] Irrelevant
https://app.dosu.dev/response-feedback/58b279c8-11e1-410d-b49f-b651b1b951b4?feedback_type=irrelevant_answer
[6] Incorrect
https://app.dosu.dev/response-feedback/58b279c8-11e1-410d-b49f-b651b1b951b4?feedback_type=incorrect_sources
[7] Verbose
https://app.dosu.dev/response-feedback/58b279c8-11e1-410d-b49f-b651b1b951b4?feedback_type=too_verbose
[8] Hallucination
https://app.dosu.dev/response-feedback/58b279c8-11e1-410d-b49f-b651b1b951b4?feedback_type=hallucination
[9] Report 🐛
https://app.dosu.dev/response-feedback/58b279c8-11e1-410d-b49f-b651b1b951b4?feedback_type=bug_report
[10] Other
https://app.dosu.dev/response-feedback/58b279c8-11e1-410d-b49f-b651b1b951b4?feedback_type=other
[11] unsubscribe
https://github.com/notifications/unsubscribe-auth/ABQWXGSJIGKDNAG4DVI3C5D4CFMJ7AVCNFSM6AAAAACPHTCBIKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTMNRVGQYDIMBTGU
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]