For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > November 2004 > easy encode function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author easy encode function
Ing. Branislav Gerzo

2004-11-25, 3:55 pm

Hi all,

I am looking for easy encoding-decoding function, which takes
bytes 0x00 - 0xff and encode them to [a-z0-9-_] characters and vice versa.
I looked at MIME, UUE, XXE, but all of them uses neither not allowed
chars, or they are case sensitive. I need only characters, which I can
use in URL, and I don't have to encoding them. I hope it is clear, if
not, here is example:

IN chars in hex: 00 ff 3c 5f
possibly OUT chars: adpf01nw

anyone ?

thanks.

--

--. ,-- ,- ICQ: 7552083 \|||/ `//EB: www.2ge.us
,--' | - |-- IRC: [2ge] (. .) ,\\SN: 2ge!2ge_us
`=3D=3D=3D=3D+=3D=3D+=3D+=3D=3D=3D~ ~=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D-o00-(_)-00o- =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
3D=3D=3D~
From=20head to heel.
=20



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com