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
SQLRDD+MYSQL Chinese Collation Problem
- kokookao2007
- Posts: 59
- Joined: Thu May 17, 2007 8:27 am
SQLRDD+MYSQL Chinese Collation Problem
-------------
best regards
kokoo Kao
best regards
kokoo Kao
- lucasdebeltran
- Posts: 1303
- Joined: Tue Jul 21, 2009 8:12 am
- Contact:
Re: SQLRDD+MYSQL Chinese Collation Problem
Hello,
I think you must set proper codepage in Harbour. For example, for Spanish:
HB_LangSelect("ES")
HB_CDPSELECT("ESWIN")
Hope it helps.
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.
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.
- kokookao2007
- Posts: 59
- Joined: Thu May 17, 2007 8:27 am
Re: SQLRDD+MYSQL Chinese Collation Problem
hi lucasdebeltran :
Thank you, I will try it and feedback .
Thank you, I will try it and feedback .
-------------
best regards
kokoo Kao
best regards
kokoo Kao
- kokookao2007
- Posts: 59
- Joined: Thu May 17, 2007 8:27 am
Re: SQLRDD+MYSQL Chinese Collation Problem
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()
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
best regards
kokoo Kao