superset icon indicating copy to clipboard operation
superset copied to clipboard

superset (0.22.1) export Chinese to csv garbled

Open xiamujun opened this issue 8 years ago • 7 comments

Make sure these boxes are checked before submitting your issue - thank you!

  • [ ] I have checked the superset logs for python stacktraces and included it here as text if any
  • [ ] I have reproduced the issue with at least the latest released version of superset
  • [ ] I have checked the issue tracker for the same issue and I haven't found one similar

Superset version

superset (0.22.1)

Expected results

export result like image :

Actual results

Steps to reproduce

image

xiamujun avatar Mar 01 '18 10:03 xiamujun

Could you please define garbled?

xrmx avatar Mar 03 '18 10:03 xrmx

yes

xiamujun avatar Mar 16 '18 10:03 xiamujun

@xiamujun I was asking to to describe what's wrong in the picture you posted, I can't see anything wrong in there.

xrmx avatar Mar 16 '18 11:03 xrmx

  1. look for file 'config.py' in your superset environment: File path on my server: /root/venv/lib/python2.7/site-packages/superset/config.py 2)search "encoding" in this file and modify that line into: 'encoding': 'gb18030', the default encoding mode is utf-8, but default encoding in office is GB. This is the root cause.
  2. restart your superset service. Good luck.

BigFaceFish avatar Mar 27 '18 08:03 BigFaceFish

ok,thanks!

xiamujun avatar Apr 20 '18 07:04 xiamujun

我按照 @BigFaceFish 说的,修改了'config.py'中的'encoding',重启服务,但是不起作用。 导出的csv文件的编码依然是utf-8,你知道是什么原因吗? @xiamujun

wutengyue avatar Jun 26 '18 08:06 wutengyue

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Apr 10 '19 19:04 stale[bot]