I am reading data in from a table on an MSSQL 2012 server and all the content comes back fine except for one column that is a VARCHAR(MAX). For some reason the text is coming back as Chinese characters. I am sure this is something to do with encoding in the way I am getting the data (shown below). Anyone know how I can tell Xojo to use the right encoding etc for this field.
No that didnt work so I have tried some of the others with no luck yet. I have looked in the DB and the field is defined as SQL_Latin1_General_CP1_CI_AS but cant find that exact match in the Xojo list.
taking just the first two E6 A1 or reversed (A1 E6) both are UTF8 characters… but NOT any thing used in the ENGLISH language
neither is ASCII (as they exceed 0x7F) abd tge same holds true for UTF16
Do you have an idea of what it SHOULD be saying?
Or can you create a record with a KNOWN phrase and post ITS result?
Have just done another test and created another field in the same table but this time created it as NVARCHAR(MAX) and it decodes perfectly in Xojo so it would appear that it is specifically an issues with VARCHAR(MAX) as VARCHAR and NVARCHAR without the MAX also work fine.
Nvarchar is wide chars, I believe, capable of handling UTF (reading various MSDN docs it seems like its UCS2 - also usually referred to as UTF-16)
Varchar is single byte encodings only - I expect that’s probably latin1 (or windows 1252 )
I have tried both of those and in fact all of them in the debugger encoding options and non of them work, in fact and version of UTF-32 causes Xojo to crash under Windows 8.1 and trashes the plugin cache which needs to be deleted and rebuild.
Brilliant, thanks Wayne. I did try looking in the Feedback system but obviously used wrong criteria. Do Xojo update the case when the issue has been fixed by the developers?