JSFiddle - React, Tailwind, and code Playground

JavaScript

function convertHexToString(input) {

        // split input into groups of two
        var hex = input.match(/[\s\S]{2}/g) || [];
        var output = '';

        // build a hex-encoded representation of your string
        for (var i = 0, j = hex.length; i < j; i++) {
            output += '%' + ('0' + hex[i]).slice(-2);
        }

console.log(output);
        // decode it using this trick
        output = decodeURIComponent(output);

        return output;
    }

    console.log("'" + convertHexToString('c385') + "'"); // => 'Å'
    console.log("'" + convertHexToString('E28093') + "'"); // => '–'
    console.log("'" + convertHexToString('E282AC') + "'"); // => '€'
    console.log("'" + convertHexToString('E382aae383a0e383ade38383') + "'"); // => '€'