MariaDB with latin5_turkish_ci collation
- Antonio Linares
- Site Admin
- Posts: 42553
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 79 times
- Contact:
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 & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
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 & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Re: Converting dbf files to MariaDB with importfromdbf
Hi Mr. Rao,
Is there any hope?
Is there any hope?
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- 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
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
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Re: MariaDB with latin5_turkish_ci collation
up!
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Re: MariaDB with latin5_turkish_ci collation
up!!
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
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.html
In 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.

in https://harbour.github.io/doc/harbour.html

My Main app.

Code: Select all | Expand
? HB_CDPSELECT()
But the result is same. There is still Turkish character problem. It displays "?".

What should I check next.
Regards,
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
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 | Expand
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
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- 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
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
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- Contact:
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 | Expand
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
Hakan ONEMLI
Harbour & MSVC 2022 & FWH 23.04
- nageswaragunupudi
- Posts: 10721
- Joined: Sun Nov 19, 2006 5:22 am
- Location: India
- Been thanked: 8 times
- 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 | Expand
#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