[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: I find the solution in sending Big5 Chinese Character through httpapi (amend the QDCXLATE API)
- From: Scott Klement <sk@xxxxxxxxxxxxxxxx>
- To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: I find the solution in sending Big5 Chinese Character through httpapi (amend the QDCXLATE API)
- Date: Tue, 21 Sep 2010 12:05:21 -0500
Hello,
The QDCXLATE support in HTTPAPI is deprecated. You should be using the
iconv support! The QDCXLATE support requires extra steps to be enabled
(it's not enabled by default) and will be removed in a future version of
HTTPAPI.
On 9/21/2010 2:31 AM, CISD Hang Lam Chan wrote:
> 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
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------