You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bcpandas saves pd.DataFrame with default encoding utf-8 and when it's uploaded through bcp some Spanish characters are not displayed correctly in the database. (They are correctly displayed in my pd.DataFrame
Right now, I have tried specifying -C 65001 to the bcp command by modifying the source bcpandas files. It has not worked. I will post a solution if I find one.
Best.
The text was updated successfully, but these errors were encountered:
bcpandas uses format file created just in time. Thus, the flag -C 65001 won't work because the format file takes precedence.
However, you can specify the collation as a param bcpandas.to_sql and this solves the problem. I specified collation="Modern_Spanish_100_CI_AS_SC_UTF8"and it solved my encoding problem.
bcpandas
savespd.DataFrame
with default encodingutf-8
and when it's uploaded throughbcp
some Spanish characters are not displayed correctly in the database. (They are correctly displayed in mypd.DataFrame
Right now, I have tried specifying
-C 65001
to thebcp
command by modifying the sourcebcpandas
files. It has not worked. I will post a solution if I find one.Best.
The text was updated successfully, but these errors were encountered: