in reply to Re^7: URL string compression?
in thread URL string compression?

Be aware that packing 0 .. 65536 into 2 bytes is going to result in filenames containing all manner of control characters and 8-bit characters that even if the filesystem accepts them will be nigh impossible for any user to type.

You'll probably need to hexify the numbers to make them acceptable for use, with the possible resultant greater length.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^9: URL string compression?
by ikegami (Patriarch) on Feb 14, 2006 at 05:14 UTC
    You should reread the thread. In short, first you compress the data to 28 bytes (at which point "all manner of control characters and 8-bit characters" are perfectly acceptable), then you encode it into 45 safe characters using a 32 bit variant of Base64.