Question
· Nov 10, 2016

ODBC issue

Hi All,

We are accessing the InterSystems`s cache database via UNIX ODBC and displaying the data in PHP website . Recently we have upgraded the PHP version to 5.6.  We are getting the nondisplayable characters (�) for only strings. But the numbers and date fields are displaying correctly. 

While querying the database via ISQL everything working fine (No Special characters).

I have looked around the internet and found the PHP 5.6 changed the default character to UTF-8.

For this issue anything, we can do from cache side.

cache version :

Cache for Windows (x86-32) 2016.1 (Build 656) Fri Mar 11 2016 17:59:39 EST

 

but we try both 8-bit and unicode cache.

 

Thanks,

Sansa.

Discussion (3)1
Log in or sign up to continue

Hwllo Sansa,

Which version of the ODBC driver are you using? Caché ships with Unicode and 8-bit versions of the ODBC Drivers:

8-Bit:

libcacheodbcu.so

libcacheodbcu35.so

Unicode:

libcacheodbcuw.so

libcacheodbcuw35.so

The 35 files are for the drivers that support ODBC 3.5. Can you make sure that you are using a Unicode build of the driver?