Hi Levy,

For UTF-8 you need to encode first and then need to pass to the memcache
module. e.g.

In order to set the value in Memcache Server:

set value {some chinese here :)}
set encoded_value [encoding convertto utf-8 $value]

ns_memcache set key $encoded_value 120

To get:

set value ""
ns_memcache get key value
set decoded_value [encoding convertfrom utf-8 $value]

HTH.

Regards,

Majid.




On Tue, Nov 16, 2010 at 2:34 PM, Levy Bajamundi <tapsitu...@gmail.com>wrote:

> Hi,
>
> We're having some issues with the nsmemcache module. It works perfectly
> fine if the string we're trying to store is regular alphabet characters, but
> once we try to store utf-8 chars, things starts to go awry. Has anyone had
> this issue before?
>
>
> Thanks,
>
> Levy Bajamundi
> Systems Developer
> ACSPropel
>
>
> --
> AOLserver - http://www.aolserver.com/
>
>
> To Remove yourself from this list, simply send an email to 
> <lists...@listserv.aol.com> with the
> body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
> field of your email blank.
>
>


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to 
<lists...@listserv.aol.com> with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to