I have a pandas data frame with Chinese characters. This works fine:
df.to_csv(âfile.csvâ, encoding = âutf-8-sigâ)
But, when introducing the streamlit download button, the Chinese characters canât get encoded correctly. Code:
file = df.to_csv(encoding = âutf-8-sigâ)
st.download_button(âDownloadâ, file,âfile.csvâ)