I'm guessing you'll have to somehow "cast" the UTF8 strings so that they're interpreted byte-by-byte, rather than character-by-character.
Maybe try "use utf8;" and then pass utf8::encode($str) instead of $str to the MD5 function. On Wed, Jan 29, 2003 at 09:50:13AM -0800, Fernando Munoz wrote: > Well, there's no error logging that I can refer to, but when you try > to hexdec these strings (the ones coming in UTF8) no matter how > different the strings are, they always return the same digest. > Searching around I find this note : > > "Perl 5.8 support Unicode characters in strings. Since the MD5 > algorithm is only defined for strings of bytes, it can not be used > on strings that contains chars with ordinal number above 255. The > MD5 functions and methods will croak if you try to feed them such > input data:" > > in the documentation for Digest::MD5 > (http://search.cpan.org/author/GAAS/Digest-MD5/MD5.pm). --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]