[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
I find the solution in sending Big5 Chinese Character through httpapi (amend the QDCXLATE API)
- From: CISD Hang Lam Chan <hl.chan@xxxxxxxxxxx>
- To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
- Subject: I find the solution in sending Big5 Chinese Character through httpapi (amend the QDCXLATE API)
- Date: Tue, 21 Sep 2010 15:31:15 +0800
Dear Scott,
I find the solution in sending Big5 Chinese Character.
Would you like to update your HTTPAPI?
The problem is in calling QDCXLATE
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/QDCXLATE.htm
It needs to use the extra optional parameter group in calling the API
Here is some hint in the [Sample Coding]
The input value wData ' 我 ' is equal to x'0E4F5C0F'
May be you can
[Sample Coding]
HDEBUG(*YES)
D* ** Declares for calling QDCXLATE API
DXLATLEN S 5 0
DwDataPtr S *
DwTable S 10
DwLib S 10
DwOutDataPtr S *
DwLenOutData S 5 0
DwLenCnvData S 5 0
DwLang S 10
DwSOSI S 1
DwTypCnv S 10
*
DwData S 4
DwOutData S 2
*
C** Eval wData = ' 我 '
C Eval wData = x'0E4F5C0F'
C '0001' Dump
C CALL 'QDCXLATE'
C PARM 4 XLATLEN
C PARM wData
C PARM ' ' wTABLE
C PARM ' ' wLib
C PARM wOutData
C PARM 2 wLenOutData
C PARM wLenCnvData
C PARM '*BG5 ' wLang
C PARM 'Y' wSOSI
C PARM '*EA ' wTypCnv
C*
C '0002' Dump
C return
Then you can get the value x'A7DA' in wOutData
Best Regards
---------------------------------------------------
From Hang-Lam CHAN
Senior Manager (MCSE, MCDBA, CCNA, OCA)
Systems Engineering Service
mailto:hl.chan@xxxxxxxxxxx
---------------------------------------------------
CISD (ASIA) CO., LTD
Progressing Hand-in-Hand with our Customer !
TEL: (852) 3199-1411 FAX: (852) 2865-4689
URL: http://www.cisd.com.hk
-----------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------