How to import a CSV with Japanese (utf-8) using TablePlus?

934 Views Asked by At

I'm using TablePlus import tool to import CSV to my local SQL Server DB. The files are big enough to avoid using Excel spreadsheet (~70 Mb), and when opening the tool it appears to support Japanese alphabet:

enter image description here

I set all columns to be varchar(max), with the Name column as nvarchar(max). Sadly, when querying the table, the Japanese data is being retrieved as question marks.

enter image description here

In referred to questions on Stackoverflow like this one, that suggested inserting using N prefix. It works when running a sample query (e.g. SELECT 'ケンガンアシュラ', N'ケンガンアシュラ' ). Sadly, it appears like the built-in tool doesn't do it when inserting, hence the question mark. With hundreds of thousands of records, I cannot insert manually or generate a script. I also made sure the editor encoding is set to UTF, and it is.

enter image description here

Lastly, I tried querying using collation, but to no avail:

enter image description here

To conclude, it seems like I'm missing a hotfix. Would love a walk-around. Thanks!!

1

There are 1 best solutions below

0
On

Ok, I used DBeaver to upload the CSVs. Works fine. Thanks y'all!