• Subject: Re: anyone here got a function to find is a string is base64 encoded?
• Date: Sun, 25 Jul 2004 17:22:26 -0700
-- snip
if i is not in "abcdefghijklmnopqrstuvwxyz1234567890+/=" then return false
May be there are other legal characters to test for, please add them too.
Greetings, WA
I just realized that empty space is not in the base64 character set. So if you know that it's either plain text with words and spaces or encoding then all you need do is check for the spaces between words.
Mark
Hi Mark,
That's right.
But checking if each char i of the string is in "abcdefghijklmnopqrstuvwxyz1234567890+/=" will take care of spaces.
I hope or am I wrong?
Wouter
_______________________________________________ use-revolution mailing list [EMAIL PROTECTED] http://lists.runrev.com/mailman/listinfo/use-revolution
