TiesdeKok / ipystata

Enables the use of Stata together with Python via Jupyter (IPython) notebooks.
192 stars 68 forks source link

Please make ipystata+jupyter display Chinese characters properly~~ #28

Closed lianyonghui123 closed 4 years ago

lianyonghui123 commented 7 years ago

as we know, in Stata 14 , even the variable names can be Chinese characters ,but Ipystata cannot display those names properly. Hope you will fix this minior problem in the future.

ipystata is a really GREAT thing!

TiesdeKok commented 7 years ago

Thanks for letting me know, I will look into it!

TiesdeKok commented 7 years ago

Hi @lianyonghui123, I looked into your problem and unfortunately it is not something that I can easily fix. The problem stems from the limited available encoding options by the Pandas read_stata and to_stata operations. I have reported this to the corresponding issue thread:

https://github.com/pandas-dev/pandas/issues/15723

kylebarron commented 6 years ago

With Pandas >= 0.23 I believe they added unicode support to read_stata

Unicode still isn't supported by the writer though