I want to pass " & ; \n ? etc as characters in my query parameter. But since they have special meaning in HTTP protocol , i feel i need to somehow 'escape' these characters to disable their functionality.
How can i do that if i want to pass them as a normal string sequence in a RESTful Spring boot application query parameter ?
I was able to replace the \n with the %0A as some answers on here suggested , but i guess i need to do some more fixes. Here is my string :-
"package drl; %0A import com.example.demo.Apple; %0A dialect 'mvel' %0A rule Apple_is_green_yall %0A when %0A $person : Apple(color == \"Green\") %0A then %0A System.out.println(\"Appl green yo guys \") %0A end"
Thanks !