Is there a solution for encoding unicode values in cookies using expressjs? For instance, when a user is utilizing the Spanish language setting, a cookie might be encoded with the user's name, like "José"
For example:
res.cookie('user', JSON.stringify({name: 'José'}));
However, upon inspection on the client side, the cookie value appears as:
{name: 'José'}
Are there any workarounds for this issue? The server appears to already handle the encoding.