MariaDB with latin5_turkish_ci collation

User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Converting dbf files to MariaDB with importfromdbf

Post by Antonio Linares »

I am asking Rao to review it, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: Converting dbf files to MariaDB with importfromdbf

Post by Horizon »

Hi,

I can convert my dbf file to MariaDB using importfromdbf with "latin5_turkish_ci". I see the right characters in HeidiSQL. There is not problem.

But all turkish characters are shown "?" in gets and xbrowse.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: Converting dbf files to MariaDB with importfromdbf

Post by Horizon »

Hi,

Is it possible?. Is there any scheduled time?
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: Converting dbf files to MariaDB with importfromdbf

Post by Horizon »

Hi Mr. Rao,

Is there any hope?
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: Converting dbf files to MariaDB with importfromdbf

Post by nageswaragunupudi »

Please give me a little time.
We both will try and find a solution soon.
Regards

G. N. Rao.
Hyderabad, India
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: Converting dbf files to MariaDB with importfromdbf

Post by Horizon »

nageswaragunupudi wrote:Please give me a little time.
We both will try and find a solution soon.
OK.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Post by Horizon »

up!
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Post by Horizon »

up!!
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Post by Horizon »

Hi,

My research:

In HeidiSQL my Data. Image

In HeidiSQL. ImageWe try to use latin5, latin5 is ISO 8859-9 Turkish.

in https://harbour.github.io/doc/harbour.htmlImageIn selected line says Language identifier is TRISO.

My Main app. Image

Code: Select all

? HB_CDPSELECT()
Result is TRISO.

But the result is same. There is still Turkish character problem. It displays "?".
Image

What should I check next.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Post by Horizon »

Hi Mr. Rao,

If I change this line like that

Code: Select all

FW_SetUnicode( .t. )
All Turkish characters is OK. But the data is read from database is unicode.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: MariaDB with latin5_turkish_ci collation

Post by nageswaragunupudi »

May I ask, if you browse a DBF with the same Turkish character data, are you able to see the data correctly, with FW_SetUnicode( .f. ) ?
Regards

G. N. Rao.
Hyderabad, India
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Post by Horizon »

nageswaragunupudi wrote:May I ask, if you browse a DBF with the same Turkish character data, are you able to see the data correctly, with FW_SetUnicode( .f. ) ?
Hi Mr. Rao,

If you asking dbfcdx using, Yes.
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: MariaDB with latin5_turkish_ci collation

Post by nageswaragunupudi »

Does this DBF browse display correctly? Please confirm.

Image
Regards

G. N. Rao.
Hyderabad, India
Horizon
Posts: 997
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Post by Horizon »

Hi Mr. Rao,

I have found the smssablon.dbf that is referred by you.

I have transferred to mariadb via Importfromdbf with "latin5_turkish_ci" charset.

Image

Image

with this code:

Code: Select all

    REQUEST HB_CODEPAGE_TRWIN
    HB_CDPSELECT( "TRWIN" )

    //ISO 8859-9 Turkish - It does not matter with TRWIN.
//  REQUEST HB_CODEPAGE_TRISO
//  HB_CDPSELECT( "TRISO" )
    
    cObj_Charset := "latin5_turkish_ci"
    FW_SetUnicode( .t. )
Regards,

Hakan ONEMLI

Harbour & VS 2019 & FWH 20.12
User avatar
nageswaragunupudi
Posts: 8017
Joined: Sun Nov 19, 2006 5:22 am
Location: India
Contact:

Re: MariaDB with latin5_turkish_ci collation

Post by nageswaragunupudi »

I have imported the above dbf to mysql with this program.
XBrowse of the MySql matches with the xbrowse of the dbf.
I do not find any ?? in the display.

I did not set FW_SetUnicode( .t. ).
So, this is not a Unicode application.

Code: Select all

#include "fivewin.ch"

REQUEST DBFCDX
REQUEST HB_CODEPAGE_TRWIN

static oCn

function Main()

   local cDbf     := "turkish\smssblon.dbf"
   local cTable   := cFileNoExt( cDbf )

   HB_CDPSELECT( "TRWIN" )

   RDDSETDEFAULT( "DBFCDX" )

   oCn := FW_DemoDB()
   if oCn == nil
      ? "Connnect Fail"
      return nil
   endif
   ? oCn:cServerInfo
   if oCn:TableExists( cTable )
      oCn:DropTable( cTable )
   endif
   oCn:ImportFromDbf( cDbf )

   XBROWSER cDbf NOMODAL
   XBROWSER oCn:smssblon

   oCn:Close()

return nil
Image

I do not see any problem.
Regards

G. N. Rao.
Hyderabad, India
Post Reply