SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: What is %5C ?

  1. #1
    SitePoint Guru risoknop's Avatar
    Join Date
    Feb 2008
    Location
    end($world)
    Posts
    834
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is %5C ?

    What is this character:

    Code:
    %5C
    Anybody knows?

  2. #2
    Twitter: @AnthonySterling silver trophy AnthonySterling's Avatar
    Join Date
    Apr 2008
    Location
    North-East, UK.
    Posts
    6,111
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Hi Richard,

    It's the '\' character urlencoded.
    @AnthonySterling: I'm a PHP developer, a consultant for oopnorth.com and the organiser of @phpne, a PHP User Group covering the North-East of England.

  3. #3
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2008
    Posts
    5,757
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    could be url encoded \

  4. #4
    SitePoint Guru risoknop's Avatar
    Join Date
    Feb 2008
    Location
    end($world)
    Posts
    834
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I see... don't know why all urls on one of my sites suddenly included %5C instead of backslashes... I didn't urlencode() them.

  5. #5
    Theoretical Physics Student bronze trophy Jake Arkinstall's Avatar
    Join Date
    May 2006
    Location
    Lancaster University, UK
    Posts
    7,062
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I have a folder called 'tools' on my localhost. In that folder I have PHP files which do general handy tasks like conversions, calculations etc.

    I have one for urldecoding, which is simply echoing the $_GET variable. I just need to go to this url http://localhost/tools/urldecode?q=%5C and it outputs the correct character.

    Using Opera (I think firefox has this too) I have shortcuts in my URL bar, like 'g something' goes to a google search page with 'something' as the search term. So all I need to do is put 'ud %5C' in the URL bar and voila.

    It comes in handy quite alot. Examples are:
    Code:
    _________Address Bar______________|_______Output______
    MD5 abc123                                   | e99a18c428cb38d5f260853678922e03
    rr 'Hello (.*)' - 'Name: \1' - 'Hello Bob' | Name: Bob
    ud %5C                                         | \
    sr localhost tools  3                         | localhost tools localhost tools localhost tools
    Jake Arkinstall
    "Sometimes you don't need to reinvent the wheel;
    Sometimes its enough to make that wheel more rounded"-Molona


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •