I tested using windows j32 (no 64-bit excel driver)
The driver returns VARCHAR for the column type which means non-unicode.
If driver had returned WVARCHAR then unicode should be handled properly.
Do you have msaccess database to test with?
You can confirm whether column type is nvarchar or not in that case.
t1=: 3 : 0''
connStr =: 'Driver={Microsoft Excel Driver (*.xls, *.xlsx, *.xlsm,
*.xlsb)};Dbq=c:\Temp\Book1.xlsx'
ch=: ddcon connStr
if. _1-:ch do.
echo dderr''
return.
end.
echo ddtblx ch
echo 'Sheet1$' ddcol ch
sh=: 'SELECT * FROM [Sheet1$]' ddsel ch
if. _1-:sh do.
echo dderr''
return.
end.
echo rawRows=: ddfet sh,_1
)
+------------------++-------+------------++
|c:\Temp\Book1.xlsx||Sheet1$|SYSTEM TABLE||
+------------------++-------+------------++
+------------------+-----------+----------+-----------+---------+---------+-----------+-------------+--------------+--------------+--------+-------+----------+-------------+----------------+-----------------+----------------+-----------+-------+
|TABLE_CAT
|TABLE_SCHEM|TABLE_NAME|COLUMN_NAME|DATA_TYPE|TYPE_NAME|COLUMN_SIZE|BUFFER_LENGTH|DECIMAL_DIGITS|NUM_PREC_RADIX|NULLABLE|REMARKS|COLUMN_DEF|SQL_DATA_TYPE|SQL_DATETIME_SUB|CHAR_OCTET_LENGTH|ORDINAL_POSITION|IS_NULLABLE|ORDINAL|
+------------------+-----------+----------+-----------+---------+---------+-----------+-------------+--------------+--------------+--------+-------+----------+-------------+----------------+-----------------+----------------+-----------+-------+
|c:\Temp\Book1.xlsx| |Sheet1$ |fld1 |12
|VARCHAR |255 |510 |_
2147483648 |_
2147483648 |1
| | |12 |_
2147483648 |510
|1 |YES |1 |
+------------------+-----------+----------+-----------+---------+---------+-----------+-------------+--------------+--------------+--------+-------+----------+-------------+----------------+-----------------+----------------+-----------+-------+
|c:\Temp\Book1.xlsx| |Sheet1$ |fld2 |12
|VARCHAR |255 |510 |_
2147483648 |_
2147483648 |1
| | |12 |_
2147483648 |510
|2 |YES |2 |
+------------------+-----------+----------+-----------+---------+---------+-----------+-------------+--------------+--------------+--------+-------+----------+-------------+----------------+-----------------+----------------+-----------+-------+
+--+-------+
|A2|B2 ????|
+--+-------+
|A3|B3 |
+--+-------+
> To unsubscribe from this group and stop receiving emails from it, send an email to
forum+un...@jsoftware.com.