Re: javax.websocket.Session.getRequestParameterMap() encoding

2018-11-22 Thread Mark Thomas
On 22/11/2018 21:29, Johan Compagner wrote: > Op do 22 nov. 2018 22:05 schreef Mark Thomas >> On 22/11/2018 16:06, Johan Compagner wrote >>> >>> problem is how do we do that in a websocket scenario? >> >> Several options: >> - configure the connector >> - use a filter before the request reached t

Re: javax.websocket.Session.getRequestParameterMap() encoding

2018-11-22 Thread Johan Compagner
Op do 22 nov. 2018 22:05 schreef Mark Thomas On 22/11/2018 16:06, Johan Compagner wrote > > > > 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 > We can't do a Tomcat only vers

Re: javax.websocket.Session.getRequestParameterMap() encoding

2018-11-22 Thread Mark Thomas
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

javax.websocket.Session.getRequestParameterMap() encoding

2018-11-22 Thread Johan Compagner
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