How long is "255 bytes"?

Discussion in 'Google' started by AHA7, May 12, 2007.

  1. #1
    Hello,

    According to Google's answer on this page, URL's should not be longer than "255 bytes". But how long is "255 bytes"? Does it mean 255 chars? How many bytes does one character in the URL occupy?

    For example, will Google follow and index the following link or it's too long? (Given that my server returns a 200 OK response to this URL)

    "http://www.domain.com/cgi-bin/articles/rt6/webhosting/getarticle?title=this%20is%20just%20an%20example%20of%20a%20long%20dynamic%20URL%20and%20this%20is%20the%20title%20of%20the%20article%20&page=articles/rt6/oitu998_oi9708/ThisIsCrazyIKnow&domain=http://domain2.tld" (This is one and one-line dynamic URL. Without the quotes of course)
     
    AHA7, May 12, 2007 IP
  2. Pierce

    Pierce Active Member

    Messages:
    634
    Likes Received:
    26
    Best Answers:
    0
    Trophy Points:
    95
    #2
    1 byte = 1 char
     
    Pierce, May 12, 2007 IP
  3. Skinny

    Skinny Peon

    Messages:
    1,864
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes 255 bytes = 255 characters

    1 character takes up 8 bits (or 1 byte).

    Skinny
     
    Skinny, May 12, 2007 IP
  4. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #4
    Not always. if you're trying to use ASCII characters > 127 on URL you'll need more. For example http://dmoz.org/World/EspaƱol/

    Also on several encoding formats like UTF8, UTF16, or Unicode, sometimes you need more than 1 byte per character.
    You can learn more about this here: http://www.tbray.org/ongoing/When/200x/2003/04/26/UTF
     
    ajsa52, May 12, 2007 IP
  5. oseymour

    oseymour Well-Known Member

    Messages:
    3,960
    Likes Received:
    92
    Best Answers:
    0
    Trophy Points:
    135
    #5
    in any case that url example you posted is wwwwaaaaayyyyy too long
     
    oseymour, May 12, 2007 IP
  6. tradeya

    tradeya Notable Member

    Messages:
    5,729
    Likes Received:
    275
    Best Answers:
    0
    Trophy Points:
    230
    #6
    space also count as one character. ^^
     
    tradeya, May 13, 2007 IP