Hi Charles, Just to add to Doug, I'll assume you are encoding '\' as '\\' well? Otherwise you would have no way to send the string '\"' without it being (incorrectly) decoded as just '"'.
If this is the case, don't forget to SWAP '\\' with '\' before you fix up the rest. So it should look something like: VALUE = CHANGE(VALUE,'\\','\') VALUE = CHANGE(VALUE,'\"','"') VALUE = CHANGE(VALUE,"\'","'") Regards, Dan -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Doug Sent: Thursday, 4 March 2010 10:48 AM To: 'U2 Users List' Subject: Re: [U2] Decoding URL in UniBasic Hi Charles: Try: VALUE = CHANGE(VALUE,'\"','"') Regards, Doug www.u2logic.com "XLr8Editor for U2" -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of [email protected] Sent: Wednesday, March 03, 2010 3:03 PM To: U2 Users List Subject: [U2] Decoding URL in UniBasic I just ran into something that I'm surprised I haven't run into before. I'm passing some data into a UniBasic subroutine from PHP using UniObjects for Java. When the string contains a single quote or a double quote, it is being escaped. It is sent as 5" Ring but arrives as 5\" Ring. I am encoding it in JavaScript and decoding it in PHP before using UniObjects for Java to send it to the UniBasic subroutine. If I don't decode it in PHP and send it through encoded, is there a way to decode it in UniBasic? Unidata 7.1. Charles Shaffer Senior Analyst NTN-Bower Corporation _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ ########################################################################################### The information transmitted in this message and attachments (if any) is intended only for the person or entity to which it is addressed. The message may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose or distribute the information contained in this e-mail and any attached files with the permission of IMB. ########################################################################################### _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
