bcpy icon indicating copy to clipboard operation
bcpy copied to clipboard

DataFrame with UTF-8

Open EckisWelt opened this issue 5 years ago • 5 comments

If I load data from a DataFrame which has foreign characters such as äöü, the import loads garbage.

To fix that you would need in the bcp command option: '-C 65001'.

And in the format_file_builder you would need to remove any collation.

https://docs.microsoft.com/en-us/sql/relational-databases/import-export/create-a-format-file-sql-server?view=sql-server-ver15

I'm not sure how it needs to be done to be still flexible with your default file import without UTF-8.

EckisWelt avatar Jan 23 '20 14:01 EckisWelt

I added these modifications that should do the job. Please try it and let me know.

pip uninstall -y bcpy
pip install --no-index git+https://github.com/titan550/bcpy@b3e8155cfc76e152e15a59b97fb3ed491dc806c4

titan550 avatar Apr 18 '20 16:04 titan550

Hi, pip uninstall -y bcpy pip install --no-index git+https://github.com/titan550/bcpy@b3e8155cfc76e152e15a59b97fb3ed491dc806c4

Tried installing this version, but the issue still persists.

anibyeol avatar Jun 12 '20 09:06 anibyeol

Hi, pip uninstall -y bcpy pip install --no-index git+https://github.com/titan550/bcpy@b3e8155cfc76e152e15a59b97fb3ed491dc806c4

Tried installing this version, but the issue still persists.

Same for me

FriiSRS avatar Nov 12 '20 06:11 FriiSRS

Yep, not resolved yet. Chinese characters are loaded like '市政科'

anibyeol avatar Dec 07 '20 15:12 anibyeol

Hello, I also have the same problem, still unsolved?

MVargasP avatar May 04 '21 16:05 MVargasP