Johan Compagner
2018-11-22 16:06:02 UTC
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"
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?
the session object of a WebSocket doesn't have anything for that as far as
i can see
the same goes for ServerEndpointConfig.Configurator using
the modifyHandshake method..
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"
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?
the session object of a WebSocket doesn't have anything for that as far as
i can see
the same goes for ServerEndpointConfig.Configurator using
the modifyHandshake method..
--
Johan Compagner
Servoy
Johan Compagner
Servoy