I’m looking to convert characters in a string to different escaped formats like the following, where the letter ‘a’ is the string being converted:
hex-url: %61
hex-html: a
decimal-html: a
I’ve searched used various built-in methods, but they merely take out the url-encoding specified chars(like ‘<‘) and escape them. I want to escape the ENTIRE string. Is there any way to convert a string into the formats above in java(using built in libraries, preferrably)?
1 Answer