Delphi 5, how to retrieve data from MySQL's tis620 fields? -


i have web application written in php using mysql database back-end.

to store language(thai) data, i'm using tis620 charset on database tables, setting great web application @ moment.

i'm going write windows application access same database web application, have faced problem retrieving data tis620 fields.

this table's default collation, using tis620

enter image description here

for testing purpose, setup eng field's collation use utf8 enter image description here

i inserted 1 sample record table

enter image description here

i'm using oracle's mysql connector/odbc 5.1 odbc driver, , tried both setup utf8 , tis620

enter image description here

i'm using delphi 5, ttable connect the database table

  1. field(s) utf8 can retrieved
  2. field(s) tis620 (table's default) cannot retrieved

    • although use field editor create fields utf8 field(s).

enter image description here

please give me advices, tis620 best suit web application @ moment, if converted fields utf8 solve problem have problem web application instead.

so how use bde data access component (ttable, tquery) retrieve data tis620 field(s)?

please help.

thanks everyone.

did use "thai" language non unicode applications in windows settings? delphi 5 applications can work thai , english @ same time. can not out of box mix charsets. suspect not need full unicode, display thai , english content.

then set code page win-874 in odbc driver.

or can switch deprecated bde newer library. if stick delphi 5, recommend test freedac supports natively:

  • oracle v 8.0.3 , higher;
  • mysql v 3.23 , higher;
  • mssql v 2000 , higher;
  • msaccess v 2000 , higher;
  • ibm db2 udb v 8 , higher;
  • sybase asa v 8 , higher.

of course, library deprecated (in favor anydac/firedac evolution), afaik 1 of best solution delphi 5. , free, sources. , imho preferred ado-based components, in delphi world.

if use freedac, won't need configure odbc (nor bde, of course), since provides direct access mysql.


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -