pinterest / pymemcache

A comprehensive, fast, pure-Python memcached client.
https://pymemcache.readthedocs.io/
Apache License 2.0
778 stars 179 forks source link

Propagate encoding from PooledClient to internal Client #569

Open asaintsever opened 8 months ago

asaintsever commented 8 months ago

Using PooledClient class, the provided encoding is not set on the internal Client class so that it defaults to "ascii" and leads to encoding exceptions in case Unicode content is provided (and encoding properly set to "utf-8" on PooledClient).

This small PR propagates the chosen encoding for the PooledClient instance to the created internal Client instances.