Fivewin & TDolphin & MariaDb & UFT8 problem?

Fivewin & TDolphin & MariaDb & UFT8 problem?

Postby bigcco » Fri Nov 04, 2022 5:06 am

Hello, everyone!
My name is Kim Jung Ho and I live in Korea.
I am going to use MariaDb using Tdolphin library.
If you connect normally and read the data, the letters are broken and visible. How can I solve this problem? Help me. Please.

https://blogfiles.pstatic.net/MjAyMjExMDRfMjg1/MDAxNjY3NTM5NjUxMzc3.HIlhcRGsvnDZmSpRgvIEWQUIe8FGttu_6aJAKQWoQbkg.M_6RQebb6ROpzwMlrJV22q9bwBjuyZy-twaH7dxFCuwg.JPEG.bigcco2006/error.jpg

Code: Select all  Expand view  RUN
#include "Fivewin.ch"
#include "TDolphin.ch"

procedure Main()
    local oServer
    local cHost     := "127.0.0.1"
    local cUser     := "root"
    local cPassword := "$01khm02khy$"
    local nPort     := 3306
    local nFlags    := 0
    local cDbName   := "bkinfo"

    local oErr

    local oQry
    local aData  := {}
    local cQuery := ""
    local i := 0

    SET CENTURY ON
    SET DATE FORMAT "yyyy.mm.dd"

    HB_SETCODEPAGE( "UTF8" )
    *FW_SetUnicode( .T. )   // It's a function that doesn't exist in my version.

    try
        CONNECT oServer HOST cHost USER cUser PASSWORD cPassword PORT nPort FLAGS nFlags DATABASE cDbName
    catch oErr
        Msginfo( oErr:Description, "Error" )
        RETURN
    end

    oQry  := TDolphinQry():New( "SELECT * FROM test", oServer )
    aData := oQry:FillArray()

    cQuery += "Record Count : "+ Transform(oQry:nRecCount,"999,999") + " / "

    cQuery += "Fields Count : "+ Transform(oQry:nFCount,"999,999") + CRLF + CRLF

    if oQry:nRecCount > 0
        for i := 1 to oQry:nRecCount
            cQuery += "RecNo. "+ALLTRIM(STR(i))+" 무엇이 문제일까?  What is the problem?" + CRLF +;
                           "Name : " + ALLTRIM(aData[i][1])+", Company : "+ALLTRIM(aData[i][2]) + CRLF + CRLF
    next
    endif

    Msginfo( cQuery )

    oQry:End()
    oQry := NIL

    oServer:End()

RETURN


FWH 10.04
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6717)
Borland C++ 5.82
TDolphin
MariaDb 10.8
Last edited by bigcco on Fri Nov 04, 2022 5:29 am, edited 1 time in total.
bigcco
 
Posts: 3
Joined: Thu Jan 07, 2016 1:23 am

Re: Fivewin & TDolphin & MariaDb & UFT8 problem?

Postby richard-service » Fri Nov 04, 2022 5:20 am

Hi Mr.Kim

I use TMySQL not problem. but I remember old FWH version UTF8 Unicode not work.
What's FWH version use?
Best Regards,

Richard

Harbour 3.2.0dev (r2402101027) => Borland C++ v7.7 32bit
MySQL v8.0 /ADS v10
Harbour 3.2.0dev (r2011030937) => Borland C++ v7.4 64bit
User avatar
richard-service
 
Posts: 804
Joined: Tue Oct 16, 2007 8:57 am
Location: New Taipei City, Taiwan

Re: Fivewin & TDolphin & MariaDb & UFT8 problem?

Postby bigcco » Fri Nov 04, 2022 5:36 am

Hello, Mr. Richard
Can I use MariaDb for TMySQL?
The version I am using is FHW 10.4
bigcco
 
Posts: 3
Joined: Thu Jan 07, 2016 1:23 am

Re: Fivewin & TDolphin & MariaDb & UFT8 problem?

Postby Antonio Linares » Fri Nov 04, 2022 7:12 am

Dear Kim,

You are using a very old FWH version.

You may consider to buy an upgrade to the new FWH 22.10
regards, saludos

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

Re: Fivewin & TDolphin & MariaDb & UFT8 problem?

Postby nageswaragunupudi » Fri Nov 04, 2022 8:50 pm

Advantages of Upgrading:

Unicode:
Highly advanced support for Unicode.

MySql/MariaDB:
Highly advanced MySql/MariaDB built-in library. No need for any external library. Fully compatible with Harbour/xHarour, Borland, GCC and MSVC, 32 and 64 bits.
Far advanced than TMySql, Dolphin and even ADO.
For most normal uses, any MySql library like TMySQL and Dolphin serve the purpose, whether you use MySQL server or MariaDB server.
But there are minor differences between MySQL upto version 5 and version 8 and MariaDB.
FWH' own library knows if the server is MySql, its version and if it is MariaDB. Internally FWH library takes into account takes into account these differences and behaves appropriately.

If you are a serious user of MySQL or MariaDB with Unicode, upgrading will greatly help you.
Regards

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

Re: Fivewin & TDolphin & MariaDb & UFT8 problem?

Postby CARLOS ATUNCAR » Wed Jul 19, 2023 10:55 pm

Estoy usando TDolphin libreria externa para usar la de FWH tendria que hacer algun cambio en mis fuentes ?
uso fwh 20.12
Carlos Atuncar - CaSoftSystem
Chincha - Perú
carlosalbatun@gmail.com
CARLOS ATUNCAR
 
Posts: 176
Joined: Thu Sep 17, 2015 11:40 pm
Location: Chincha - Peru

Re: Fivewin & TDolphin & MariaDb & UFT8 problem?

Postby nageswaragunupudi » Thu Jul 20, 2023 1:52 am

FWH 20.12 works.

Minor changes only.
Regards

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


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 90 guests