server encoding

Kevin Williams kevwil at
Tue Feb 28 18:19:29 UTC 2006

So if .NET defaults to UTF8 encoding on everything, the server
messages would be OK because ASCII characters encoded as UTF8 don't
change, correct? I'm trying to write a *server*, not a client, so I
just want to make sure that I do the right things internally.

Thanks for the help! I can't wait to get this running.

On 2/28/06, Brad Fitzpatrick <brad at> wrote:
> The memcached protocol deals with chunks of 8-bit bytes.  How your
> application wants to map those byte arrays to/from strings with
> encodings is undefined, but there is the "flags" field on each object so
> you can keep your own notes about the type of the data.
> The server error messages can be assumed to be ASCII.
> - Brad
> Kevin Williams wrote:
> > Hello all,
> >
> > I just joined the list. I searched the list archives on this but
> > didn't find an exact answer, so here goes.
> >
> > I'm putting together a memcached server in C# / .NET. I want to make
> > sure I am compatable with other client languages. As far as I can
> > tell, strings are the only thing I would need to worry about. Do I
> > need to keep everything in ASCII? UTF8? Does the data being stored
> > need to be treated differently than, say, command strings and output
> > messages?
> >
> > --
> > Cheers,
> >
> > Kevin



"Picking fights with people smarter than you
is great - you always end up learning something."

More information about the memcached mailing list