node-sqlserver-v8 icon indicating copy to clipboard operation
node-sqlserver-v8 copied to clipboard

Why are database field names garbled when using Chinese fields?

Open andyFang94 opened this issue 2 years ago • 3 comments

image

Why are database field names garbled when using Chinese fields?

image

andyFang94 avatar May 22 '23 08:05 andyFang94

@robin-karlsson @TheThing @dhensby @gulshan

andyFang94 avatar May 22 '23 08:05 andyFang94

its because the meta data for a column which holds column name , type, size is using ascii string rather than 16 bit wide wstring - hence the name corruption. The column data is read with wide char set so data should be ok.

it is a problem in the cpp part of driver - it will go on the item list to fix

TimelordUK avatar May 22 '23 08:05 TimelordUK

there is a candidate fix for this on master - not released to npm but there is binaries built for windows and linix (not yet alpine or macos).

TimelordUK avatar May 23 '23 12:05 TimelordUK