FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour SQLRDD+MYSQL Chinese Collation Problem
Posts: 59
Joined: Thu May 17, 2007 08:27 AM
SQLRDD+MYSQL Chinese Collation Problem
Posted: Fri May 17, 2013 06:56 AM

hi:

Any one use SQLRDD + MYSQL with Chinese Collation?

Created a Database with collation big5_chinese_ci or collation gb2312_chinese_ci or collation gbk_chinese_ci ,
I can't show Chinese word for FWH+xHarbour+SQLRDD.

Created a Database with utf8_general_ci,
work fine for FWH+xHarbour+SQLRDD , But show Chinese word for Phpmyadmin tool.

How can Chinese Collation work for both FWH+xHarbour+SQLRDD and Phpmyadmin ?

--
Best Regards


kokoo KAO

-------------

best regards

kokoo Kao
Posts: 1303
Joined: Tue Jul 21, 2009 08:12 AM
Re: SQLRDD+MYSQL Chinese Collation Problem
Posted: Fri May 17, 2013 04:56 PM

Hello,

I think you must set proper codepage in Harbour. For example, for Spanish:

HB_LangSelect("ES")
HB_CDPSELECT("ESWIN")

Hope it helps.

Muchas gracias. Many thanks.



Un saludo, Best regards,



Harbour 3.2.0dev, Borland C++ 5.82 y FWH 13.06 [producción]



Implementando MSVC 2010, FWH64 y ADO.



Abandonando uso xHarbour y SQLRDD.
Posts: 59
Joined: Thu May 17, 2007 08:27 AM
Re: SQLRDD+MYSQL Chinese Collation Problem
Posted: Sat May 18, 2013 02:50 AM

hi lucasdebeltran :

Thank you, I will try it and feedback .

-------------

best regards

kokoo Kao
Posts: 59
Joined: Thu May 17, 2007 08:27 AM
Re: SQLRDD+MYSQL Chinese Collation Problem
Posted: Mon Jun 17, 2013 08:19 AM

hi :

I test the the solution work for SQLRDD + Chinese.

for Chinese Traditional :
1. Create a database Collation with utf8_generial or utf8_unicode or
big_chinese_ci.
2. add the command After Connect to MYySQL
cCOMM:=" SET NAMES 'big5' ;" +;
" set character_set_client='big5'; "
nERR := oSQL:EXEC(cCOMM)
nERR := oSQL:COMMIT()

for Chinese Simple :
1. Create a database Collation with utf8_generial or utf8_unicode or
gb_2312_chinese_ci or gbk_chinese_ci.
2. add the command After Connect to MYySQL
cCOMM:=" SET NAMES 'gb_2312' ;" +;
" set character_set_client='gb_2312'; "
nERR := oSQL:EXEC(cCOMM)
nERR := oSQL:COMMIT()

-------------

best regards

kokoo Kao

Continue the discussion