mistercrunch commented on a change in pull request #3441: config: allow choosing separator character and encoding for csv writing URL: https://github.com/apache/incubator-superset/pull/3441#discussion_r138146082
########## File path: superset/viz.py ########## @@ -306,7 +306,8 @@ def data(self): def get_csv(self): df = self.get_df() include_index = not isinstance(df.index, pd.RangeIndex) - return df.to_csv(index=include_index, encoding="utf-8") + return df.to_csv(index=include_index, encoding=str(config.get('CSV_EXPORT')['ENCODING']), Review comment: Why casting to `str`? ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services