I have an API which gets the company name as the query parameter and fetches the company details in JSON format.
The issue is, Name contains the Trade Mark symbol. So the API is failing and throwing an error
Example: http://localhost:8080/company/companyname=ABC TM(Trademark Symbol) Ltd
Error is:
java.lang.IllegalArgumentException: Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 3986
Checked different sites but didn't find anything related to passing TM symbol in URL.
Example: http://localhost:8080/company/companyname=ABC TM(Trademark Symbol) Ltd
I want a solution to accept the trademark symbol in the URL that would work and retrieve the results.