On 22/11/2018 16:06, Johan Compagner wrote:
Hi,

If we send have a value that is utf8 url encoded to the websocket:

H%C3%BCnenberg

then somehow tomcat just encodes that using i think "ISO-8859-1"

Tomcat version?

See URIEncoding for the Connector.

if we are in a filter or servlet we just do:

request.setCharacterEncoding("UTF8");

and then ask for the parameter map then everything is fine it will be
decoded correctly to Hünenberg

problem is how do we do that in a websocket scenario?

Several options:
- configure the connector
- use a filter before the request reached the WebSocket filter

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to