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

Re: [Ftpapi] receiving a document from a http_url_post_raw single quotes turned into \u0027



The code snippet was from 2006

 

 

From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Friday, March 31, 2017 3:08 PM
To: FTPAPI/HTTPAPI mailing list <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: Re: [Ftpapi] receiving a document from a http_url_post_raw single quotes turned into \u0027

 

Agreed - but most shops doing "modern" things like web services are normally on at least a supported release if not the current one. So a requirement of 7.1 didn't seem overly demanding to me.

 

 

 

On Mar 31, 2017, at 1:30 PM, Bill Negley <wnegley@xxxxxxxxxxxxx> wrote:

 

%ScanRpl was only introduced in 7.1; they would need to use the other method if on a lower version.

 

From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Jon Paris
Sent: Friday, March 31, 2017 12:32 PM
To: FTPAPI/HTTPAPI mailing list
Subject: Re: [Ftpapi] receiving a document from a http_url_post_raw single quotes turned into \u0027

 

%ScanRpl would be much simpler Chris surely?

 

I statement to rule them all!

 

 

 

On Mar 31, 2017, at 11:10 AM, Hayden, Chris <CHayden@xxxxxxxxxxxx> wrote:

 

 

begsr XMLReplacementValues;  

 

lPos = %Scan( '"' : pVariableValue );                              

 Dow lPos > *Zeros;                                                 

   pVariableValue = %Replace( '&quot;' : pVariableValue : lPos : 1 );

   lPos = %Scan( '"' : pVariableValue : lPos + 1 );                 

 EndDo;                                                              

                                                                     

 lPos = %Scan( '''' : pVariableValue );                             

 Dow lPos > *Zeros;                                                 

   pVariableValue = %Replace( '&apos;' : pVariableValue : lPos : 1 );

   lPos = %Scan( '''' : pVariableValue : lPos + 1 );                

 EndDo;                                                             

 

 

 

From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Gerald Magnuson
Sent: Friday, March 31, 2017 11:01 AM
To: HTTPAPI and FTPAPI Projects (ftpapi@xxxxxxxxxxxxxxxxxxxxxx) <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Subject: [Ftpapi] receiving a document from a http_url_post_raw single quotes turned into \u0027

 

What do I need to do to get my data to properly translate single quote marks?

 

 

 

Gerald Magnuson | Senior System I Admin


The Knapheide Manufacturing Company
1848 Westphalia Strasse // P.O. Box 7140 // Quincy, IL // 62305-7140
P: 217-592-5291 //   F: 217-592-5046 // www.knapheide.com

 

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi

 

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi

 

-- 
_______________________________________________
Ftpapi mailing list
Ftpapi@xxxxxxxxxxxxxxxxxxxxxx
http://scottklement.com/mailman/listinfo/ftpapi