[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Non english character like Ñ is send as '?' to Webservice
At the start of your code, insert a line that looks like this:
callp HTTP_set_ccsids(1208: 0)
This tells HTTPAPI to convert your EBCDIC document in your RPG variable
to UTF-8 (Unicode). UTF-8 shouldn't have any trouble with your
characters. Plus, you've told the web service that your document will
be encoded with UTF-8 -- so it'd make sense to actually encode it that way!!
Unnikrishnan Rajasekharan wrote:
> Hi all,
>
> I am sending some Non-english charcaters like Ñ and ° as
> shown below from AS/400 to WEBSERVICES with HHTPAPI
>
> Address2>CALLE 13 AV CENTENARIO N° 84-65 ATN: FANY PEÑA
>
> The non-english charcters were replaced as shown below
>
> Request document:
> <?xml version="1.0" encoding="UTF-8"?> <soap:Envelope
> xmlns:Vastera="[1]http://ndcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
> XXXXXXXXXXXXXX[2]/envelope/"
> xmlns:xs="[3]http://www.w3..org/2001/XMLSchema"><soap:Body><Vastera:Cu
> stomerValidation_RequestInfo><PartnerID>1036313774-0004-001</PartnerID
> ><PartnerType>PTNR_SHIP_TO</PartnerType><PartnerType>PTNR_ULT_CONSIGNE
> E</PartnerType><OperatingUnit>100</OperatingUnit><Status>ACTIVE</Statu
> s><CustomerSeqNumber></CustomerSeqNumber><CustomerName>KONEKTEL</Custo
> merName><Address1>ADD1 CHG</Address1><Address2>CALLE 13 AV CENTENARIO
> N? 84-65 ATN: FANY PE?
>
>
>
> How do I send the non-english charcters as it is with HTTPAPI?
>
> Any ideas on this are most welcome..
>
>
>
> Thanks in advance,
>
> Unni
>
> Do not follow Where the Path May LEAD,
> Go instead where there is No Path and LEAVE A TRAIL.........
> UNNIKRISHNAN.R [08.gif]
> _________________________________________________________________
>
> It's here! Your new message!
> Get [4]new email alerts with the free [5]Yahoo! Toolbar.
>
> References
>
> 1. http://ndcXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX/
> 2. http://il06exf60.ds.mot.com/exchweb/bin/redir.asp?URL=http://schemas.xmlsoap.org/soap/envelope/
> 3. http://il06exf60.ds.mot.com/exchweb/bin/redir.asp?URL=http://www.w3..org/2001/XMLSchema%22%3E%3Csoap:Body%3E%3CVastera:CustomerValidation_RequestInfo%3E%3CPartnerID%3E1036313774-0004-001%3C/PartnerID%3E%3CPartnerType%3EPTNR_SHIP_TO%3C/PartnerType%3E%3CPartnerType%3EPTNR_ULT_CONSIGNEE%3C/PartnerType%3E%3COperatingUnit%3E100%3C/OperatingUnit%3E%3CStatus%3EACTIVE%3C/Status%3E%3CCustomerSeqNumber%3E%3C/CustomerSeqNumber%3E%3CCustomerName%3EKONEKTEL%3C/CustomerName%3E%3CAddress1%3EADD1
> 4. http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/
> 5. http://us.rd.yahoo.com/evt=49938/*http://tools.search.yahoo.com/toolbar/features/mail/
>
>
> ------------------------------------------------------------------------
>
> -----------------------------------------------------------------------
> This is the FTPAPI mailing list. To unsubscribe, please go to:
> http://www.scottklement.com/mailman/listinfo/ftpapi
> -----------------------------------------------------------------------
>
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------