MariaDB with latin5_turkish_ci collation
- 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
I am asking Rao to review it, thanks
Re: Converting dbf files to MariaDB with importfromdbf
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.
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
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Re: Converting dbf files to MariaDB with importfromdbf
Hi,
Is it possible?. Is there any scheduled time?
Is it possible?. Is there any scheduled time?
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Re: Converting dbf files to MariaDB with importfromdbf
Hi Mr. Rao,
Is there any hope?
Is there any hope?
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: Converting dbf files to MariaDB with importfromdbf
Please give me a little time.
We both will try and find a solution soon.
We both will try and find a solution soon.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: Converting dbf files to MariaDB with importfromdbf
OK.nageswaragunupudi wrote:Please give me a little time.
We both will try and find a solution soon.
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Re: MariaDB with latin5_turkish_ci collation
up!
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Re: MariaDB with latin5_turkish_ci collation
up!!
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Re: MariaDB with latin5_turkish_ci collation
Hi,
My research:
In HeidiSQL my Data.
In HeidiSQL. We try to use latin5, latin5 is ISO 8859-9 Turkish.
in https://harbour.github.io/doc/harbour.htmlIn selected line says Language identifier is TRISO.
My Main app.
Result is TRISO.
But the result is same. There is still Turkish character problem. It displays "?".
What should I check next.
My research:
In HeidiSQL my Data.
In HeidiSQL. We try to use latin5, latin5 is ISO 8859-9 Turkish.
in https://harbour.github.io/doc/harbour.htmlIn selected line says Language identifier is TRISO.
My Main app.
Code: Select all
? HB_CDPSELECT()
But the result is same. There is still Turkish character problem. It displays "?".
What should I check next.
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Re: MariaDB with latin5_turkish_ci collation
Hi Mr. Rao,
If I change this line like that
All Turkish characters is OK. But the data is read from database is unicode.
If I change this line like that
Code: Select all
FW_SetUnicode( .t. )
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: MariaDB with latin5_turkish_ci collation
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
G. N. Rao.
Hyderabad, India
Re: MariaDB with latin5_turkish_ci collation
Hi Mr. Rao,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. ) ?
If you asking dbfcdx using, Yes.
Regards,
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: MariaDB with latin5_turkish_ci collation
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India
Re: MariaDB with latin5_turkish_ci collation
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.
with this code:
I have found the smssablon.dbf that is referred by you.
I have transferred to mariadb via Importfromdbf with "latin5_turkish_ci" charset.
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
Hakan ONEMLI
Harbour & VS 2019 & FWH 20.12
- nageswaragunupudi
- Posts: 8017
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Contact:
Re: MariaDB with latin5_turkish_ci collation
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.
I do not see any problem.
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
I do not see any problem.
Regards
G. N. Rao.
Hyderabad, India
G. N. Rao.
Hyderabad, India