-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
to_html()没有encoding参数?造成输出中文显示乱码 #28663
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@645187919 Thanks for the report, however, can you provide a reproducible example. http://matthewrocklin.com/blog/work/2018/02/28/minimal-bug-reports |
I think he is saying there is no |
Thanks @charlesdong1991 . the the buffer handling code is shared with
so it should be straightforward to add encoding to #15008 (comment) "Textual payloads should support the encoding argument" #28377 has been opened for discussion regarding passing options for the open call. but I think in this case, for consistency with other IO methods, we could just add the encoding argument directly to the to_html argument list. @TomAugspurger |
yeah, agree, a solution to solve this issue could be adding |
added at #28692 |
Added at #28951 |
Code Sample, a copy-pastable example if possible
Problem description
当我用to_html()方法生成html的时候,中文显示乱码,后来一看该方法竟然没有encoding参数,希望作者能完善了,这样以后会方便很多人哈!
[this should explain why the current behaviour is a problem and why the expected output is a better solution.]
Note: We receive a lot of issues on our GitHub tracker, so it is very possible that your issue has been posted before. Please check first before submitting so that we do not have to handle and close duplicates!
Note: Many problems can be resolved by simply upgrading
pandas
to the latest version. Before submitting, please check if that solution works for you. If possible, you may want to check ifmaster
addresses this issue, but that is not necessary.For documentation-related issues, you can check the latest versions of the docs on
master
here:https://pandas-docs.github.io/pandas-docs-travis/
If the issue has not been resolved there, go ahead and file it in the issue tracker.
Expected Output
Output of
pd.show_versions()
[paste the output of
pd.show_versions()
here below this line]The text was updated successfully, but these errors were encountered: