Quantcast
Channel: SCN: Message List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 9165

Re: Unicode problem importing CSV to a table

$
0
0

Hello Wenjun,

 

My CSV and XLSX files have 2 colums, ID and DESCRIPTION.

 

The ID column contains both chars (EEAADA, IJDUA) and numbers (1, 10, 23, etc), and the DESCRIPTION column contains only chars but with unicode characters like ó or ñ.

 

When I import this file in HANA, I define both columns as NVARCHAR but I have 2 problems:

 

- If I import the file with CSV format, the column DESCRIPTION doesn't show the special characters ó or ñ, it shows like a ?. On the other hand, it imports the ID column perfectly.

 

- If I import the XLSX file, the column DESCRIPTION is correct and the ó and ñ characters are imported well, but in the ID column, the "number" characters 1, 20, 33, etc, are converted to 1.0 , 20.0, 33.0, etc. Why is adding this decimal if the column is a NVARCHAR?

 

 

Thank you.


Viewing all articles
Browse latest Browse all 9165

Trending Articles



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