In general..., there was no problem in using Korean Alphabet with Fivewin/Harbour..
But, when I tried to use MSSQL (or "ADODB.Connection"), the Korean Alphabet were broken like followings...
http://pharmalink.kr/images/mssql_msg.jpg
It should be look like followings.
http://pharmalink.kr/images/mssql_msg2.jpg
The source codes was as followings..
- Code: Select all Expand view
- #Include "FiveWin.ch"
Func Main()
Local xConnect
Local oRs,cSql, oCn
xConnect := 'Provider=SQLOLEDB.1;Password=1234;Persist Security Info=False;User ID=sa;Initial Catalog=PMLIST;Data Source=PC\SQLEXPRESS'
oCn := CREATEOBJECT( "ADODB.Connection" )
oCn:Open( xConnect )
oRs := TOleAuto():New( "ADODB.Recordset" )
oRs:CursorType := 1
oRs:CursorLocation := 3
oRs:LockType := 3
cSQL := "SELECT * FROM CUSTOMER ORDER BY code"
oRs:Open( cSQL, oCn )
? 11, oRs:Fields( "NAME" ):Value <--- the value was broken..
oRs:Close()
oCn:Close()
Return(.t.)
Please kindly help to resolve this problem..
Thanks..
Y.W.Kim