php-src/unicode-gotchas.txt
2006-03-03 22:46:55 +00:00

7 lines
394 B
Plaintext

* md5() on Unicode string will obviously be different from md5() done on
a native encoding version of that string. This can trip up people who
generate signatures externally (storing them in DB for instance) and then
pass md5() of Unicode strings to check against that. The solution is to
always run md5() on a string of the same type and encoding that the
external md5() was run on.