Perl utf8

Paul Dlug paul.dlug at
Tue Nov 22 11:55:59 PST 2005

On 11/22/05, Dave Evans <memcached-list-20050609 at> wrote:
> On Mon, Nov 21, 2005 at 04:52:33PM -0800, Brad Fitzpatrick wrote:
> > Actually that sounds like exactly the wrong way to fix the problem.
> Fair enough; I was forgetting that the module already includes the
> Storable
> logic (that is, I was thinking of Cache::Memcached as a simple byte
> storage
> system). I'm still curious to know more about why (encode|decode)_utf8
> didn't
> work for the original poster.

I found the problem, the string is being fetched from a MySQL database and
of course you must manually call decode_utf8() on the string returned by DBI
in order to get it properly encoded. I am also calling encode/decode_utf8
with the cache set/get and this fixes the problem. Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the memcached mailing list