in reply to UTF spooky action
md5_hex expects each input character to be a byte (ord = 0..255), whether internally encoded as UTF-8 or not. That's fine.
For simplicity and efficiency, it converts these characters into actual bytes if the internal encoding is UTF-8 using utf8::downgrade or something equivalent.
This means your database or database interface (as used) expects bytes, so it expects your text to be *encoded*.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: UTF spooky action
by wes (Initiate) on Apr 20, 2009 at 17:34 UTC |