[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: httpapi - problem with french special characters



Hello Cyril,

Your English is very easy to understand -- but there seems to be some 
extra character that's showing up in your e-mail that makes the code 
hard to read...?

I understand that you're having trouble with the é character (e with an 
acute accent.)  However, all I know is what the character looks like on 
your screen -- I don't know what it looks like to the computer.

So... what is the hex value of your é character?   Is it x'C0'?

Are you using the BETA version of HTTPAPI?  Or are you using an older 
version?  (There was no CCSID support for webforms prior to the current 
BETA...  so if you're not using it, give it a try...)



On 1/26/2011 4:09 AM, Cyril Clemenceau wrote:
>
>     Hi all,
>     � �  I'm Cyril Clemenceau and work with Nicolas Mazo, but he has
>     better english :-) .
>     � �  Ok, i'll try to explain what we want and we do. As Nicolas
>     explain you, we want send mail by httpapi through another application.
>     � �  I use Webform to translate special characters in HTTP format, but
>     i have some trouble.
>     � �  CCSID EBCDIC : 297
>     � �  CCSID ASCII� � � �  : 1208
>     � �  My symplified code :
>     � � �  HDATEDIT(*YMD) DATFMT(*ISO)
>     � � � � �  MOD�  HALWNULL(*USRCTL)
>     � � � � �  MOD�  HOPTION(*NODEBUGIO)
>     � � � � �  /define WEBFORMS
>     � � � � �  /COPY CLEMENCEAU/QCOPSRC,HTTPAPI_H
>     � � � �  D Form� � � � � � � � � � �
>     s� � � � � � � � � � � � � � � � � �  like(WEBFORM)
>     � � � �  D myPointer� � � � � �  s� � � � � � � � � � � � � �  *
>     � � � �  D dataSize� � � � � � �  s� � � � � � � � � � � �  10I 0
>     � � � �  D w_url� � � � � � � � � �  S� � � � � � � � � �  5000A� �
>     varying
>     � � � �  D text� � � � � � � � � � �  S� � � � � � � � � � � �
>     50A� �  varying
>     � � � �  D rc� � � � � � � � � � � � �  s� � � � � � � � � � � �  10I
>     0
>     � � � �  D w_text� � � � � � � � �  s� � � � � � � � � �  1500A� �
>     varying
>     � � � �  D pText� � � � � � � � � �  s� � � � � � � � � � � � � �  *
>     � � � � �  /free
>     � � � � � �  rc = http_SetCCSIDs(1208 : 297);
>     � � � � � �  Form = WEBFORM_open�  ;
>     � � � � � �  WEBFORM_SetVar(Form: 'lib': 'testétest')�  ;
>     � � � � � �  WEBFORM_SetVar(Form: 'ccr': '75');
>     � � � � � �  WEBFORM_SetVar(Form: 'del': %char(0));
>     � � � � � �  WEBFORM_SetVar(Form: 'ede':
>     '[1]destinataire@xxxxxxxxxx')�  ;
>     � � � � � �  WEBFORM_SetVar(Form: 'eem': '[2]emetteur@xxxxxxxxxx');
>     � � � � � �  w_text = 'testétest';
>     � � � � � �  pText = %addr(w_text);
>     � � � � � �  WEBFORM_setPtr(Form: 'txt': pText:%len(w_text));
>     � � � � � �  WEBFORM_postData( Form : myPointer : dataSize )� �  ;
>     � � � � � �  w_url = '[3]http://myUrlToSendMail/';
>     � � � � � �  rc = http_url_post(w_url : myPointer : dataSize :
>     � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �
>
>     � �  '/tmp/mailAdh.html'
>     � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �  :
>     HTTP_TIMEOUT
>     � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �  :
>     HTTP_USERAGENT
>     � � � � � � � � � � � � � � � � � � � � � � � � � � � � � � �  :
>     'text/plain');
>     � � � � � �  if�  rc<>  1 and rc<>  201;
>     � � � � � � � �  // on affiche un message d'erreur
>     � � � � � � � �  text = 'erreur : ' + %char(rc);
>     � � � � � � � �  dsply text;
>     � � � � � �  else;
>     � � � � � � � �  // on quitte l'écran d'envoi des mails
>     � � � � � � � � �  dsply 'OK';
>     � � � � � �  endif�  ;
>     � � � � � �  WEBFORM_close(Form);
>     � � � � � �  *inlr = *on;
>     � � � � � �  //
>     �  �  �  /end-free
>     My request should contains 'test%C3A9test' in 'lib' and 'txt', but it
>     contains 'test%C3%A9z%3A%A3'.
>     When I used 819 in my ASCII CCSID, I obtain 'test%E9test' but '%E9' is
>     not understand on my web application.
>     Thank you for you help.
>     Regards
>     Cyril
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------