Hi - Help Needed
Using PB 17. Connecting to a legacy SQL Anywhere Database V17 with Char Character Encoding Windows-1252. NChar encoding UTF-8
We have no trouble with reading and writing foreign language characters to nvarchar columns using a connection with Bind Valiables - however we cannot generally use this as the use of Bind Variables causes problems with our app with very large queries. At the time converting the database is not practical.
So when we connect using a datawindow to update nvarchar UTF8 foreign characters, we use the Bind Variable in the ODBC connection - this works well for extended characters reads and writes.
The problem is with the SQLSA using format 3 or 4 Dynamic SQL - even if we tell it to use the SQLCA_BIND connection in the prepare, queries and database functions still return garbage characters when foreign characters (Japanese, Cyrillic, etc) are used in metadata.
How can we do dynamic SQL and get it to support foreign characters??
This is sort of urgently needed fix.
Any help or suggestions would be appreciated.
Thanks
Glenn Barber
Are you able to provide an example of the dynamic SQL that you are using (even the simplest query)? If the image you provided did show an example I can't see it as the image isn't displaying (at least on my machine).
Regards...Mark.
returns 'ABC_'