[GitHub] yamyamyuo commented on issue #1935: UnicodeEncodeError when show slice record
yamyamyuo commented on issue #1935: UnicodeEncodeError when show slice record URL: https://github.com/apache/incubator-superset/issues/1935#issuecomment-377447206 @xrmx I am using superset 0.22.1 If I use chinese characters in dashboard name or slice name , the above issues will show. I noticed that mysql db data has question mark (?) instead of chinese characters. So I set the mysql charset. This problem is solved after setdefaultencoding. 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
[GitHub] yamyamyuo commented on issue #1935: UnicodeEncodeError when show slice record
yamyamyuo commented on issue #1935: UnicodeEncodeError when show slice record URL: https://github.com/apache/incubator-superset/issues/1935#issuecomment-376384200 I have solved this problem. I am using py2. 1. you should fix mysql url by `mysql://user:password@1.1.1.1/db?charset=utf8` 2. if you are using py2, you should specify ``` if sys.version_info.major < 3: reload(sys) sys.setdefaultencoding('utf8') ``` and then things works ☄️ 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
[GitHub] yamyamyuo commented on issue #1935: UnicodeEncodeError when show slice record
yamyamyuo commented on issue #1935: UnicodeEncodeError when show slice record URL: https://github.com/apache/incubator-superset/issues/1935#issuecomment-376106099 > Using mysql? Tried setting the charset on the connection string as in mysql://user:password@1.1.1.1/db?charset=utf8? @mistercrunch this can fix dashboard show record, however, slice show record is still 500 error 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