Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Perl > Perl Misc > Compress/Zip a String

Reply
Thread Tools

Compress/Zip a String

 
 
http://edealseek.com/newsgroup.html
Guest
Posts: n/a
 
      09-12-2003
I need to convert a string, an URI/EmailAddress based string into a
letter/number only string. I know I can use acsii table, but that will
make each char into a 2 letter thing, that will increase the length of
the string by 100%. I know there are many zip/compress algorithm for
files. I used gzip to zip text file, and the ratio is 10%, so that
means using a good algorithm, I can cut 90% fat. I wonder if anyone
can show me a way to zip/compress a string (http://?&key=value, and
like) into the least of letters/numbers

Thank you.
 
Reply With Quote
 
 
 
 
Jürgen Exner
Guest
Posts: n/a
 
      09-12-2003
http://edealseek.com/newsgroup.html wrote:
> I need to convert a string, an URI/EmailAddress based string into a
> letter/number only string.


It appears you are looking for uuencode/uudecode.

jue


 
Reply With Quote
 
 
 
 
Louis Erickson
Guest
Posts: n/a
 
      09-13-2003
"Jurgen Exner <> wrote:
: http://edealseek.com/newsgroup.html wrote:
:> I need to convert a string, an URI/EmailAddress based string into a
:> letter/number only string.

: It appears you are looking for uuencode/uudecode.

Or base64. It's just as clen, and generally smaller.

Either will still expand the string. However, compressing it will almost
certainly produce binary data, and render goal of letters and numbers only
to be moot.

Could this be an XY problem?

--
Louis Erickson - - http://www.rdwarf.com/~wwonko/

Better dead than mellow.
 
Reply With Quote
 
Malcolm Dew-Jones
Guest
Posts: n/a
 
      09-14-2003
http://edealseek.com/newsgroup.html () wrote:
: I need to convert a string, an URI/EmailAddress based string into a
: letter/number only string. I know I can use acsii table, but that will
: make each char into a 2 letter thing, that will increase the length of
: the string by 100%. I know there are many zip/compress algorithm for
: files. I used gzip to zip text file, and the ratio is 10%, so that
: means using a good algorithm, I can cut 90% fat. I wonder if anyone
: can show me a way to zip/compress a string (http://?&key=value, and
: like) into the least of letters/numbers

zip and then base64

zip makes it as small a possible

base64 makes it a little bigger but in ascii


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
'System.String[]' from its string representation 'String[] Array' =?Utf-8?B?UmFqZXNoIHNvbmk=?= ASP .Net 0 05-04-2006 04:29 PM
Is "String s = "abc";" equal to "String s = new String("abc");"? Bruce Sam Java 15 11-19-2004 06:03 PM
String[] files = {"a.doc, b.doc"}; VERSUS String[] files = new String[] {"a.doc, b.doc"}; Matt Java 3 09-17-2004 10:28 PM
String.replaceAll(String regex, String replacement) question Mladen Adamovic Java 3 12-05-2003 04:20 PM
Re: String.replaceAll(String regex, String replacement) question Mladen Adamovic Java 0 12-04-2003 04:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57