Reverse the url-encoded process

Hi there,
Is it possible to flash rebuild a string that as been
url-encoded?
Thanks,

Hi David thanks for your reply.
It seems that my problem is not url-encoded.
I have a flash with a sendAndLoad vars to a coldfusion file.
The coldfusion is suppose to return a XML object. Instead it
returns a
String because the XML special characters [ <, >, " ]
are converted to
[&lt;, &gt;, &quot;].
I think this problem is because you can have a programming
language based on
tags directly written in coldfusion (also a programming
language based on
tags). Like when you write html formatting text in an xml
structure. The xml
structure will assume tags like <br/> as a child Node
instead of a tag
content.
So I had to make some functions to replace special characters
in a string.
I don't agree with this solution, but it was the only thing I
came up with.
Thanks
"David Stiller" <[email protected]> wrote in
message
news:e63u3m$oug$[email protected]..
> SteveStall,
>
>> Is it possible to flash rebuild a string that as
been url-encoded?
>
> You betcha. The escape() function url-encodes strings;
the unescape()
> function url-decodes strings.
>
>
> David
> stiller (at) quip (dot) net
> Dev essays:
http://www.quip.net/blog/
> "Luck is the residue of good design."
>

Similar Messages

  • Is it possible to introduce a 60s delay in the encoding process?

    I have what seems to be a fairly unique situation to deal with.  I am successfully streaming "LIVE" using FLME to an FMS server.  Currently the buffer on the FMS is set to 30s which means that our viewers have a native 30s delay on the live action.  I actually want to INCREASE this delay, but I need to do it without increasing the FMS buffer size.
    My thinking at this stage is to introduce some sort of pre-processing in the live encoding process so that the data that is sent to FLME is 60s "after" the live action takes place.  This gets streamed to FMS which, together with the 30s buffer size, results in the live action being broadcast a full 1m30s after it has actually been captured.
    My problem is that I have no idea how to do this - anybody else doing something similar, or that can point me at an application I could use that would give me the combo of "live" streaming with a built-in encoder-side delay?

    I can see 3 different scenarios:
    1. You want to do some processing (graphics, overlay, etc) on the captured stream before passing it on to FMLE.
    2. You want to delay the live stream at FMLE end.
    3. You want to replace the audio or video content with some other content (mute the audio for a sec, show a black screen, etc)
    1st case - FMLE wants raw input from a direct show filter (device) and FMLE doesn't have any buffer for the captured data. That means, whatever arrives is encoded without any delay. So, if there is a way to insert some other devices and process the stream before giving it to FMLE, then you can do that. But ensure that data which reaches FMLE is in raw format. If you find any set up capable of doing this, please share it.
    2nd case - As i have explained above, FMLE doesn't have any buffer. So, you cannot configure it to delay the stream. But there is a way to accomplish this task. On the machine which is running FMLE, limit the outgoing bandwidth to 0 kbps. Now start encoding and watch the buffer grow in FMLE stats panel. When buffer reaches 60 sec, remove the bandwidth limit. Doing this will flush out the buffered content to FMS and FMS would pass the data to subscribed clients. So, ultimately the data will be buffered at subscriber's side.
    3rd case - If you want to mute the audio for a short span of time, there are 2 workarounds to do this. First one is to unplug the audio cable from the capture card, right at the moment when you want it and again plug it back. You can time this by watching the previews. Another way is to lower the volume slider bar in FMLE which remains enabled throughout the encoding process. If you want to play any other sound during this short span, then you can connect a different source to the card for the moment. This is easier to do, if your audio device is sound card, because you can simply mute one file and play another. The problem with above 2 methods is that they are cumbersome and it's difficult to be precise in timings. Moreover, if the feed is live, which is probably the case, and you have no idea what's going to come, then the whole process of unpluging/pluging, mute/play becomes very difficult. For video, there is a more elegant way to replace frames. There are many virtual cameras (ManyCam, Webcammax, etc) which acts as a source for FMLE. In these softwares you can have a list of video sources. While encoding is going on in FMLE, just choose a different video source in the virtual camera, that will change the FMLE video feed also. But these virtual cameras are not very reliable, in this forum you can find many posts describing issues with them. As your use case, is to replace only audio and not the video, you cannot do server-side switching. Server-side switching replaces the whole stream. Switching only audio or video is not possible.

  • Speeding up the encoding process

    I just encoded a 2hr movie which took some time. after reading through some old posts i have not come up with a specific way to increase encoding speed. one suggestion was to use 2 hard drives. how do i set up IDVD to do this? I have an external drive. Will this actual increase the speed?

    Have to agree with PT on this one. Almost entirely dependent on clock speed and cpu type.
    I'm not sure if additional HD's will increase speed or not. From my own experiences, External HD's may even slow things down a bit. Much better to work from the main internal HD (that has plenty of available HD space) in my opinion. iDVD6 needs plenty of elbow room on the main drive.
    If you don't have plenty of available HD space then it could (and in most cases does) slow the entire encoding process significantly.
    SDMacuser

  • Problem in URL Encoding  in J2ME

    Hi,
    I have a problem in URL Encoding in J2ME. As i read thru the J2ME APIs, i found that J2ME doesn't support it.
    Or can i use the URL Encoding in J2SE to modify and put into J2ME?
    Or someone out there have done such coding?
    Reply me!
    Thanks!...

    like this:
    public static String URLEncoder(String str) {
    if (str == null) return null;
    StringBuffer resultStr = new StringBuffer( str.length() );
    char tmpChar;
    for( int ix=0; ix<str.length(); ix++ ) {
    tmpChar = str.charAt( ix );
    switch( tmpChar ) {
    case ' ' : resultStr.append( "%20" );
    break;
    case '-' : resultStr.append( "%2D" );
    break;
    case '/' : resultStr.append( "%2F" );
    break;
    case ':' : resultStr.append( "%3A" );
    break;
    case '=' : resultStr.append( "%3D" );
    // System.out.println( "tmpChar = '=' " + "add %3D " );
    break;
    case '?' : resultStr.append( "%3F" );
    // System.out.println( "tmpChar = '?' " + "add %3F " );
    break;
    case '#' : resultStr.append( "%23" );
    break;
    case '\r' : resultStr.append( "%0D" );
    break;
    case '\n' : resultStr.append( "%0A" );
    break;
    default : resultStr.append( tmpChar );
    break;
    return resultStr.toString();
    }

  • Why is the url changing when I create a hyperlink?

    Very strange. I am copying a url from my browser to create a hyperlink in an email but when i click the link it doesn't work because the url is different. Here is the url that I copy and pasted:
    http://www.rightsideproductions.com/blogs/bd/2010/01/27/A-SERIOUS-GAME-OF-MINIAT URE-GOLF%3Ci%3ELEARNING-THE-CANON-7D%3C.SLH.i%3E/
    Here is the url that mail trys to open:
    http://www.rightsideproductions.com/blogs/bd/2010/01/27/A-SERIOUS-GAME-OF-MINIAT URE-GOLF%253Ci%253ELEARNING-THE-CANON-7D%253C.SLH.i%253E/
    It's adding a 25 before anything with a 3. Any idea on a fix?

    That is a bit amusing. The characters such as <> in the original URL are being encoded as %3C%3E. What is happening is that the URL encoding character % is itself getting URL encoded as %25 (Snow Leopard's Mail doesn't appear to do this, though).
    A workaround would be to use a website such as http://meyerweb.com/eric/tools/dencoder/ to decode the URL encoding to regular text, which will then be (hopefully correctly) URL encoded when you insert your link.

  • T-code to reverse the overhead

    Can someone please let me know, how to reverse the overhead on process orders, and is it always mandatory that we have to reverse the overheads when we reverse the process order confirmation?

    In the same Tcode select "Overhead Claculation->reverse" from top menu bar or presee "F7".
    Reward points if helpful.
    Venkat

  • Get the parameters from the URL

    Hi all,
    In my applet I need to know the parameters that are in the URL. But I don't know how to do this.
    I started with this:
    String URL=getDocumentBase().toString();So URL has the full url, like: http://127.0.0.1./test.html?Testparam1=hello
    What I could think of is to use :
    int i = URL.getindexof("?Testparam1");
    String value =URL.substring(i);But that is not very handy when using more parameters.
    Is there an other way to get the parameters from the URL?

    You could use a regex or a StringTokenizer, but I'll bet there's a library somewhere that'll do it for you. Probably something in Apache Jakarta Commons. As far as I know there's nothing in the standard library that'll fully parse query strings for you, although you can use java.net.URLDecoder to decode the url-encoding (the %xx encoding).
    If you don't want to find a specialized library, then probably a regular expression is the easiest approach.

  • Guestname coming from session, not from parameter, and it's URL-encoded. Need it decoded.

    We have a hosted account for Adobe Connect. When users want to enter a room, they go to a URL like this:
    http://connectpro12345678.na5.acrobat.com/rereview/?launcher=false&guestName=John%20Smith
    This drops them into the meeting room, but the name is listed under Participants as
    John%20Smith
    rather than the desired John Smith.
    I've determined that the URL-encoded name is coming from the session, because when I deleted the BREEZESESSION cookie and hit the meeting room directly, using a URL like:
    https://connectpro12345678.adobeconnect.com/_a963369417/rereview/?launcher=false&guestName =Michael%20Van%20Kleeck
    the guest name is displayed appropriately.
    How can I force Connect to either decode the guestname or to use the guestname from the parameter, rather than the session?
    Thanks!
    -Michael

    You shouldn't be using the naX.acrobat.com URLs. These URLs are redirecting to the new adobeconnect.com URLs, which may be where you are seeing the issues. You shouldn't need to use your account ID (_a963369417) so your links should look like: http://connectpro12345678.adobeconnect.com/review/?launcher=false&guestName=John%20Smith

  • Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string co

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ _____________________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

    this should be in the as3 forum.  but you need to return name/value pairs from your php file.

  • Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containin

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs. at Error$/throwError() at flash.net::URLVariables/decode() at flash.net::URLVariables() at flash.net::URLLoader/onComplete() _________________________________________________________________________________________ ____________ stop(); var DepartVars:URLVariables = new URLVariables(); var DepartURL:URLRequest = new URLRequest("scripts/www.mywebsite.com/depart.php"); DepartURL.method = URLRequestMethod.POST; DepartURL.data = DepartVars; var DepartLoader:URLLoader = new URLLoader; DepartLoader.dataFormat = URLLoaderDataFormat.VARIABLES; DepartLoader.addEventListener(Event.COMPLETE, completeDepart); depart_btn.addEventListener(MouseEvent.CLICK, DepartUser); // Function to run when the Depart button is pressed function DepartUser (event:MouseEvent):void{             // Ready the variables here for sending to PHP           DepartVars.post_code = "Depart";         // Send the data to the php file           DepartLoader.load(DepartURL);         welcome_txt.text = "Processing request...Bon Voyage"; } // Close DepartUser function /////////////////////////////////////// // Function for when the PHP file talks back to flash function completedepart(event:Event):void{     if (event.target.data.replyMsg == "success") {             var refreshPage:URLRequest = new URLRequest("javascript:NewWindow=window.location.reload(); NewWindow.focus(); void(0);");             navigateToURL(refreshPage, "_self");         } // Close completeDepart function ////////////////////////////// // Code for the View res Button var viewRes:URLRequest = new URLRequest("view_res.php"); viewRES_btn.addEventListener(MouseEvent.CLICK, viewResClick); function viewResClick(event:MouseEvent):void {     navigateToURL(viewRes, "_self"); } ///////////////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////// // Code for the Edit Res profile Button var editRes:URLRequest = new URLRequest("edit_res.php"); editRES_btn.addEventListener(MouseEvent.CLICK, editResClick); function editResClick(event:MouseEvent):void {     navigateToURL(editRes, "_self"); } }

    I have a similar problem
    whey I use .txt my code works, but when I change to .dat external file, it get error 1067
    my code:
    import flash.display.Sprite;
    import flash.events.*;
    import flash.net.URLLoader;
    import flash.net.URLLoaderDataFormat;
    import flash.net.URLRequest;
    var loader: URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.addEventListener(Event.COMPLETE, loading);
    loader.load(new URLRequest("rssnews.dat"));
    function loading(e: Event): void {
              news_1.text = trace(e.target.data.titulo);
              news_2.text = trace(e.target.data.texto);

  • Cancel or reverse the process ordrer confirmation posted in a closed period

    Hi SAP experts,
                              It would be very nice of you if you could solve this issue for me.
                              The issue is -
                               There is a process order created and released for a material on 01.07.2010.Partial confirmation for the order was done on 15.07.2010 but the posting date was entered as 14.06.2010.So the stock for the material got posted on 14.06.2010 which was supposed to be posted on 14.07.2010. Now, if we try to cancel the order confirmation in the current month through CORS , system is giving errors because the posting period is closed .
                               Is there any way to reverse the postings without opening the posting period?
                               How we can open the field for the posting date in the transaction CORS where we can assign new posting date for the cancellation of the order confirmation. Is it possible to enter this new posting date as 01.07.2010 now because the posting period for July is currently open?
    Best regards,
    RAB

    The reason for reversal is that - the goods receipt on the date 14.06.2010 should tally with the goods receipt for the process order created for the month of June 2010 on that particular date as per the daily production report developed for client. In this case, only one process order is created for a material for each month and that is confirmed daily as per the daily production and then confirmed and settled finallly at the end of the month.
    Now the requirement is that the excess goods receipt posted in June 2010 for the process order created for July 2010 should be reversed so that the goods receipts for the June's process order on that particular date for that material match properly.
              Actually , to compensate for this wrong posting done  by the user on 14.06.2010, another confirmation for the same order of July 2010 was done for that material with same qty. with correct posting date(14.07.2010) so that the goods receipts for July 2010 for the material for that process order are proper.
             I am sure you must have clearly understood the issue. Is it possible to cancel the the order confirmation done with posting date 14.06.2010 by giving new posting date as 01.07.2010? Whether this will display proper stock for the material in June as well as July? Kindly confirm.
    Best regards,
    RAB
    Best regards,

  • HU error when Reversing the goods issue in STO process

    Hello Gurus,
    I will explain the whole process we follow for STO:
    1. Create sales order ->Based on PR in sales order schedule lines, PO will be created -> outbound delivery -> Pack in HU -> PGI -> based on output type Idoc will be triggered -> this outbound IDOC will create the Inbound IDOC and Inbound delivery -> Here HU will copied from Outbound delivery (Means both in inbound delivery and outbound delivery HU is same)-> then do the Good receipt in Inbound delivery.
    Now when user doing the goods receipt he is getting error MSSA-SATRA exceeded by 1PCE  The reason is someone deleted the item from the sales order.  Hence when user trying to post the GR it is checking for the open sales order item in MSSA table.  Since it has been deleted from the sales order he cant able post GR.
    Now user does not wants to receive this item, hence we wants to reverse the process.
    So we followed the below process:
    1. Unassigned the HU in Inbound delivery and then deleted the Inbound delivery.
    2. Then used VL09 transaction to reverse the goods issue.  But system giving error saying that HU is already assigned to object.
    I cant able to reverse the Goods issue since the HU is same in Inbound delivery and outbound delivery.
    Kindly suggest the reversal process for the above case.  Many thanks for your help in advance.
    Awating for your valuable replies.
    Br,

    Insted of deleting the handling units you should have un assign the handling units from inbound delivery.You have deleted the handling units and the same handling units will not be available in outbound delivery Pack icon.
    Do one thing are you able to enter line item in sales order ?.If yes then create inbound delivery manually and create new handling units for the qty and do GR.
    Currently where is the stock is it transit ?.If yes then above option may work.
    If nothing is possible only an option to write a SAP oss note they will correct your outbound delivery and inbound delivery.

  • Problem in reversing the released Process order.

    Hi PP Gurus,
    When I'm trying to reverse the Process order release in change process order COR2 system is not allowing me as the menu option is Gray. When I released processed order Control recipe is generated and due to some problem in PI sheet I discarded in CO60 transaction code. So can anybody please tell me how to handle this situation? I mean is this can be resolved by configuration or enhancement?
    Thanks & Regards,
    Abu Arbab

    Hi Krishna,
    Thanks for reply.
    Now tell me what should be the approach we if we don't want to delete the Process order? Say PI sheet is created and sent to it's destination through Background job and later we found some error in PI sheet so and we've discarded that PI sheet. In case when I don't want to delete or Teco Process order, what will be the process in this case?
    Thanks & Regards,
    Abu Arbab

  • Commas not correctly processed when values are passed through the URL!!!!!!

    I think this is a bug. Any information about this will be greatly appreciated. Here's the scenario:
    There's a single page with 2 regions. The first region contains a simple SQL report. The second region is and HTML region that contains text and date form elements. The SQL report has a column link "Edit" that when pressed it populates form elements in the HTML region. The population of the form elements is done by passing the column values of the select row as variables along the URL. The problem is that commas within column value text are processed as delimiters in the URL. From my understanding and documentation, variables and their values are supposed to look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:1234,,5678
    where MY_ITEM1 will be set to 1234, MY_ITEM2 will be set to null and MY_ITEM3 will be set to 5678 (The URL was copied directly from the Apex 3.0 documentation without modification).
    However if the first value is text (lets say "some,thing") that contains a comma, then MY_ITEM1 will be set to the text preceding the comma in the first value (some), the MY_ITEM2 will be set to the text that comes after the comma in the first value (thing) NOT null and MY_ITEM3 will be set to null NOT 5678. Clearly, one would think that the comma in the first value should be escaped given that commas are used as delimiters of values in this URL scheme.
    The URL looks like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing%2C%2C5678
    However the URL should look like this:
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:some%2Cthing,,5678
    where MY_ITEM1 is set to "some,thing", MY_ITEM2 is null and MY_ITEM3 is set to 5678
    What does all this mean? This means that the escaped commas (%2C) are used as delimiters for the values. Additionally, any information that is passed that contains a comma will have it's comma escaped as well AND still considered as delimiters for values in the URL. Not to mention it's inconsistent with the official documentation.

    Never mind... problem solved.
    In the Apex docs says that you can embed commas if used within backslashes like: \123,45\.
    So in order to pass text that has a comma through the URL, one must force Apex to code the URL like this (assuming that the text is coming from a report):
    f?p=6000:6004:&APP_SESSION.::NO:6003:MY_ITEM1,MY_ITEM2,MY_ITEM3:\#A_COLUMN#\,,5678
    Sorry... no bug. :)

  • SharePoint Search encodes the URL incorrectly when there are special characters in a filename on a file share

    In our Sharepoint Server 2013 CA, Search Administration, Content Sources, we have configured a File Share Content Source.
    Search queryes works fine and it returns relevant documents from the file share content source.
    But when click on a file with a filename that contains special characters like "ÁÝÚÍÓÐ", Sharepoint encodes the link to the file incorect, and when we click on the link to the file, it throws an error on the screen saying "This
    page can’t be displayed".
    The following picture shows an example on how Sharepoint shows encodes the URL to a file with a special character in the filename:
    As you can see, the link to the file is
    \\xserver1\felagstest\Kompliserað\Ólavur.pdf, but when I hoover over the file, it translates og encodes this to
    \\xserver1\Felagstest\Kompliserað\Ólavur.pdf. If I manually type the correct link in the address field in Internet Explorer then it works.
    What is the problem here, and more importently what is the solution to this problem?

    This is solved in the Hotfix KB 2899469 for SharePoint Server 2013 October 14, 2014:
    http://blogs.technet.com/b/stefan_gossner/archive/2014/10/14/october-2014-cu-for-sharepoint-2013-has-been-released.aspx
    I installed the http://support2.microsoft.com/kb/2899469 hotfix, and now I can search and open files on external file shares with path and filenames containing non-US-ASCII characters,
    without getting "This page can’t be displayed".
    Where in the description of this hotfix is written, that it solves the encoding issue?

Maybe you are looking for

  • Could I have purchased an i7 13" MBP non-retina in-store?

    Hey everyone! Back in October, I purchased the 13" non-retina display MBP at my nearest Apple Store. I really wanted to get the higher-end i7 version (as it was listed on the website) but, I wasn't asked if I wanted to configure it to higher specs wh

  • Problem with internet!? or is it safari?

    hi Sometimes when i open web pages in safari they do not open and say i'm not connected to the internet (Which i am!). Then if i go into firefox and open the same page it works! Why is this and can i fix it?

  • Java.util.zip.ZipException: error in opening

    i ahve problem unzipping some zip file any one help me the zip file is name PRICE.ZIP and content is PRICE.TXT Please help code                //zf will contain the actual zip file object                System.out.println("FILE TO UNZIP"+SERVER_DIREC

  • IPhoto 08 Bugs & Alterations...

    This is sooo slow. Am editing full screen on a second monitor which wasn't fantastically speedy in '06 but now it's taking me 10 seconds to save & move on to the next photo (10 megapixel camera) where it used to take me 2-3. Sick of the spinning beac

  • What is a system password in oracle 11gR1?

    can anyone suggest me where can i find my sys password? Thanks