Odd snippet of code appearing in link url's

Last post 02-04-2011, 9:50 AM by Eric. 3 replies.
Sort Posts: Previous Next
  •  01-27-2011, 10:15 PM 65927

    Odd snippet of code appearing in link url's

    I am finding the following snippet of code embedded within link url's in pages that have been edited using the editor. 
     
    %0D%0A%0D%0A
     
    I have absolutely no idea where this code is coming from. It does not appear in all link url's, and the incidents of it's appearance in the code seems to be completely random.
     
    Has anyone else seen anything like this appearing randomly in their code?
  •  01-28-2011, 8:55 AM 65936 in reply to 65927

    Re: Odd snippet of code appearing in link url's

    Dear davidlockett,
     
    I cannot reproduce this issue. Please try http://phphtmledit.com/EnableAll.php, can you reproduce this issue in this example? If you can, please tell us the steps.
     
    Thank you for asking
  •  02-03-2011, 9:22 PM 66043 in reply to 65927

    Re: Odd snippet of code appearing in link url's

    Thanks Eric.
     
    I have identified the cause of the problem and identified the solution.
     
    It is one of those dumb things that crop up from time to time when you are working away, and is due to a setting within another application.
     
    The problem and solution have has nothing to do with the editor. Although I will explain what happened below so that other editor users can avoid experiencing the problem.
     
    I store a local up-to-date version of each page's code on my PC in a plain notepad file for security purposes and in case I stuff up the code within the editor and cannot for some reason recover it.
     
    When previously recovering pages from these local back up files, I must have had Word Wrap turned off in Notepad. I must however at some time turned Word Wrap on. Then when I copied code from the backup notepad document and pasted that code into the editor HTML view, the code carried within it the hidden line wrap code which then became visible when the code was pasted into the editor.
     
    Because some of the link url's within that code were long and so broke to a second line when Word Wrap was turned on in Notepad, the code snippet %0D%0A%0D%0A (which is the ASCII code for a line wrap), displayed within the URL, causing images to not display and causing hypertext links to become broken.
     
    The simple solution, is to always ensure that Word Wrap is turned off in Notepad if you are copying code from that application and pasting it into the editor's HTML view.
     
    Thanks
    David
  •  02-04-2011, 9:50 AM 66053 in reply to 66043

    Re: Odd snippet of code appearing in link url's

    Dear davidlockett,
     
    Glad to know you fixed it, thanks for sharing!
     
    Thank you for your business
View as RSS news feed in XML