Characters like %20

Posted:
in Genius Bar edited January 2014
If you display a file in a web browesr that contains characters like spaces in the file name, the browser converts the non-standard characters into strings like %20. For example, if i create a file called "new index.html" it will display as "new%20index.html" this is all fine and dandy, but does anyonw know where I can find a list of all of these characters?



I'm building an application that is apparently throwing random characters in file names, but they aren't visible in the finder. what appears to be 25.html turns out to be %0D25.html. I don't know why it is doing this, but if I knew what character %0D stood for, that would at least be a clue...



thanks for your help.



[ 04-04-2002: Message edited by: Stroszek ]</p>

Comments

  • Reply 1 of 6
    allinoneallinone Posts: 279member
    BBEdit has a table for this.



    I'm sure you could find a reference if you do a google search as well.



    %0D appears to be a return. How can you have a return in a file name?
  • Reply 2 of 6
    stroszekstroszek Posts: 801member
    [quote]Originally posted by AllInOne:

    <strong>BBEdit has a table for this.



    I'm sure you could find a reference if you do a google search as well.



    %0D appears to be a return. How can you have a return in a file name?</strong><hr></blockquote>



    Yeah, it does appear to be a return. I don't know how they are getting in there though, but in case you were wondering, files who's name begins with a return are placed before files that being with a 1 when listed by name in the finder. When you get info, the file name is blank also.



    Who knew?!
  • Reply 3 of 6
    kaboomkaboom Posts: 286member
    First return on a google search for "html characters".

    <a href="http://www.w3.org/MarkUp/html-spec/html-spec_13.html"; target="_blank">Remember kids, google is your friend.</a>
  • Reply 4 of 6
    stroszekstroszek Posts: 801member
    [quote]Originally posted by kaboom:

    <strong>First return on a google search for "html characters".

    <a href="http://www.w3.org/MarkUp/html-spec/html-spec_13.html"; target="_blank">Remember kids, google is your friend.</a></strong><hr></blockquote>



    Thanks for the link, but %0D wasn't listed.
  • Reply 5 of 6
    [quote]Originally posted by Stroszek:

    <strong>



    Thanks for the link, but %0D wasn't listed.</strong><hr></blockquote>



    That's because it's in Hexadecimal. It would be the equivelant of %13. Here is the table I use (it has decimal and hex values):



    <a href="http://acius.com/acidoc/cmu/CMU10119.htm"; target="_blank">http://acius.com/acidoc/cmu/CMU10119.htm</a>;
  • Reply 6 of 6
    [quote]Originally posted by AllInOne:

    <strong>%0D appears to be a return. How can you have a return in a file name?</strong><hr></blockquote>



    This was one of those tricks I found a while back for making things appear first in the Classic Apple Menu. What you had to do was actually do a line break (return) in something like NotePad, and then on the next line write what you wanted the file to say. Then you copied the line break and the text, and pasted it into the file name. You don't actually see a space or anything in front of the file name, it's just sort of invisible.
Sign In or Register to comment.