T
T
Toster Guest2018-08-21 17:58:21
Java
Toster Guest, 2018-08-21 17:58:21

How to change charset in Apache Tomcat?

When trying to make a request ( localhost:8080/Users?s={"id": 27, "key": ["a1", "d3", "c5"]} ) Apache Tomcat throws an error: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
riot26, 2018-08-21
@riot26

Apparently the problem is not in the charset, but in invalid characters in the URI. You need to encode the query string: https://docs.oracle.com/javase/8/docs/api/java/net...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question