Java %u20AC conversion to euro €

how can I convert a string like:

URLDecoder.decode("promo desc %u20AC", "UTF-16");

into "promo desc €" ?
In fact the method above doesn’t work because % indicates a hex string whilst u20AC is not a valid hex string.

Product of the Month September 2016

Source link

Leave a Comment

Your email address will not be published. Required fields are marked *