MariaDB with latin5_turkish_ci collation

Re: Converting dbf files to MariaDB with importfromdbf

Postby Antonio Linares » Sat Apr 11, 2020 10:37 pm

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Converting dbf files to MariaDB with importfromdbf

Postby Horizon » Sun Apr 12, 2020 11:50 am

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 & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Converting dbf files to MariaDB with importfromdbf

Postby Horizon » Sat Apr 18, 2020 11:24 am

Hi,

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

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Converting dbf files to MariaDB with importfromdbf

Postby Horizon » Wed Apr 29, 2020 9:03 am

Hi Mr. Rao,

Is there any hope?
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Converting dbf files to MariaDB with importfromdbf

Postby nageswaragunupudi » Wed Apr 29, 2020 9:50 am

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

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Converting dbf files to MariaDB with importfromdbf

Postby Horizon » Wed Apr 29, 2020 10:25 am

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


OK.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Postby Horizon » Fri May 15, 2020 2:36 pm

up!
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Postby Horizon » Wed May 27, 2020 3:52 pm

up!!
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Postby Horizon » Mon Jun 01, 2020 4:14 pm

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  Expand view
? 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 & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Postby Horizon » Mon Jun 01, 2020 5:39 pm

Hi Mr. Rao,

If I change this line like that
Code: Select all  Expand view
FW_SetUnicode( .t. )

All Turkish characters is OK. But the data is read from database is unicode.
Regards,

Hakan ONEMLI

Harbour & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Postby nageswaragunupudi » Tue Jun 02, 2020 3:38 am

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
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: MariaDB with latin5_turkish_ci collation

Postby Horizon » Tue Jun 02, 2020 9:40 am

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 & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Postby nageswaragunupudi » Tue Jun 02, 2020 2:48 pm

Does this DBF browse display correctly? Please confirm.

Image
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: MariaDB with latin5_turkish_ci collation

Postby Horizon » Tue Jun 02, 2020 3:53 pm

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  Expand view
    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 & MSVC 2022 & FWH 23.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: MariaDB with latin5_turkish_ci collation

Postby nageswaragunupudi » Tue Jun 02, 2020 5:07 pm

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  Expand view
#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
User avatar
nageswaragunupudi
 
Posts: 10641
Joined: Sun Nov 19, 2006 5:22 am
Location: India

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 31 guests