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.
Using
PooledClient
class, the provided encoding is not set on the internalClient
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.