Quantcast
Channel: Active questions tagged utf-8 - Stack Overflow
Viewing all articles
Browse latest Browse all 1135

Bulk Insert UTF8 file with Dagger field separator

$
0
0

I'm struggling with trying to set up BULK INSERT options for SQL Server for a UTF8 text file with fields containing both Polish and Czech/Slovak characters and a custom field separator ().

Snippet of the file is shown here:

Štefánia Nešborowaerová‡JęzykźźźŻŻŻÓÓŁŁŁĘĘęąńć‡20.909Štefán Nešbáro‡Jaś Wędrówkaż‡55.55John Rastad‡Wiktor Tędracki‡0.20689

If I replace the custom field separator with a comma, then the code I use works fine. However I need the BULK INSERT code to work with the custom () separator.

BULK INSERT [Test].[dbo].[TestTable]FROM 'D:\Import\Import.csv'WITH     (           FIRSTROW = 1,        FIELDTERMINATOR = ',',        CODEPAGE='65001',        KEEPIDENTITY    )

Viewing all articles
Browse latest Browse all 1135

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>